> From: "Duives, J. (Jelle)" <[email protected]>
> To: "[email protected]" <[email protected]>, 
> Date: 10/09/2013 09:34 AM
> Subject: RE: Thrift server binding to (already) binded port
> 
> I am using Windows and java

Then setReuseAddress is almost certainly causing a problem then.  Try 
commenting out "serverSocket_.setReuseAddress" in TServerSocket.java.  The 
C++ library has received a (hopefully) reasonable port to Windows.  It 
looks like the Java library still has some nasty Windows surprises in it.

Basically, SO_REUSEADDR (and the Java equivalents) have drastically 
different behaviors on POSIX platforms compared to Windows.  On Windows, 
SO_REUSEADDR is a really bad idea.

Reply via email to