Review Request : JDK-8002306,(se) Selector.open fails if invoked with thread interrupt status set [win]

Dan Xu dan.xu at oracle.com
Mon Dec 10 14:28:23 PST 2012


Hi folks,

Please help review the fix for JDK-8002306, Selector.open fails if 
invoked with thread interrupt status set [win], at
http://cr.openjdk.java.net/~dxu/8002306/webrev/ 
<http://cr.openjdk.java.net/%7Edxu/8002306/webrev/>

On windows, we establish loopback socket connections every time  a 
selector is opened. But the connect operation will fail and throw out 
ClosedByInterruptException if its current thread is interrupted. In 
order to open a selector on an interrupted thread successfully, the fix 
clears the interrupt status, establish socket connections, and reset the 
status to interrupt afterwards to work around the restrictions. Thanks!

-Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20121210/ec063a48/attachment.html 


More information about the nio-dev mailing list