AbstractSelectorLoop register/unregister should be calling sel.wakeup().

No. sel.wakeup() will not release the locks on the sets and will cause registering the keys to block until the selector thread is run again.


AbstractSelectorLoop processWaiters that first while loop looks bad.

I don't see how it looks bad but even so its not used anywhere.


WSL/RSL beforeSelect - now why are these calling select?

So that there are no registered keys on the selector when the channel/socket is being closed, which causes a rare jvm-level deadlock


=========
P.s. the api is very misleading at times, all of the above is not documented and has 
been discovered after long sleepless nights



_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to