thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Craig <bencr...@apache.org>
Subject RE: Thrift server binding to (already) binded port
Date Wed, 09 Oct 2013 14:43:14 GMT
> From: "Duives, J. (Jelle)" <jelle.duives@tno.nl>
> To: "user@thrift.apache.org" <user@thrift.apache.org>, 
> 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.


Mime
View raw message