TimeoutException in accept() method

Umashankar Umashankar.Ningaiah at Sun.COM
Wed Feb 25 02:58:23 PST 2009


Hi Alan,
While running Asynchronous IO unit tests provided by you. I noticed the 
following issue:
In the AsynchronousChannelGroup Basic tests class,there is a test case " 
initiate another accept even though channel group is shutdown."
Here, instead of TimeoutException, shouldn't we throw 
"ShutdownChannelGroupException", since we are invoking accept() on a 
channel whose group is shutdown.
If we use the no-arg get() method instead of timed get() method. The 
test hangs and the user of the accept method would not know the cause 
for it.
Just a thought, please let me know if I am wrong.

Thanks,
Umashankar




More information about the nio-dev mailing list