I ran the test on Linux, so yes, it could be a platform-specific problem. I think this is the more likely cause, though:
https://issues.apache.org/jira/browse/AVRO-776 Maybe that fix isn't in the version of Avro that you guys are using/testing. That would certainly explain the symptoms. Maybe it works for me because I was running the test against trunk rather than a tag. -James 2011/6/14 Holger Hoffstätte <[email protected]> > > 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 >
