On 14.06.2011 08:32, James Baldassari wrote:
> I made a JUnit test from Alex's example and modified it to join on the
> SocketServer after calling close(), as you suggested.  This doesn't hang
> for me, and it doesn't throw any exceptions when re-binding to the same
> port.  The test I ran is here:
> 
> http://pastebin.com/zWPv3MXF

Both your test and Alex' original code fail for me on Windows7 with JDK
1.6.25. Your test hangs, Alex' code fails on re-bind()ing. I'm running
against svn trunk. Could this be a platform-dependenant behaviour?
Curiously I haven't noticed any problems with this in my own tests, but
in those I do accept connections/exchange data etc.

-h

Reply via email to