Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
0.4, 0.5
-
None
-
None
-
Patch Available
Description
SocketChannel.isConnected() has this broken behavior http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6341625, but TSocket corrects it by setting its Socket to null in close() and then checking that in isOpen(). This patch does something similar by checking SocketChannel.isOpen() which has the correct semantics. Added an assertion that exposed the previous failure. Also remove reference to derived Socket since it just confused matters.