Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # user >> SaslSocketServer.close() doesn't close?

Copy link to this message
Re: SaslSocketServer.close() doesn't close?
I ran the test on Linux, so yes, it could be a platform-specific problem.  I
think this is the more likely cause, though:


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.

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