Posted By:
Victor_Ho
Posted On:
Friday, March 11, 2005 06:28 PM
Hi,
When a socket read thread is blocked on InputStream-read(), what are the all the possbile ways to unblock such thread? (Note: I am using blocking sockets stil, nothing from NIO)
From my testings:
1) InputStream - close() // this works
2) Socket - close() // this works
3) Socket - shutdownInput() // does not work
4) Thread - interrupt() // does not work
Anybody know of other ways or think differently on the behavior above?
Thanks