Skip to content

Commit

Permalink
Merge branch 'bind_fix' into 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomatolog committed Oct 27, 2017
2 parents 0807240 + aebc664 commit 8c9e465
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/searchd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2221,6 +2221,10 @@ int sphCreateInetSocket ( DWORD uAddr, int iPort )
int iOn = 1;
if ( setsockopt ( iSock, SOL_SOCKET, SO_REUSEADDR, (char*)&iOn, sizeof(iOn) ) )
sphWarning ( "setsockopt() failed: %s", sphSockError() );
#ifdef SO_REUSEPORT
if ( setsockopt ( iSock, SOL_SOCKET, SO_REUSEPORT, (char*)&iOn, sizeof(iOn) ) )
sphWarning ( "setsockopt() failed: %s", sphSockError() );
#endif
#ifdef TCP_NODELAY
if ( setsockopt ( iSock, IPPROTO_TCP, TCP_NODELAY, (char*)&iOn, sizeof(iOn) ) )
sphWarning ( "setsockopt() failed: %s", sphSockError() );
Expand Down

0 comments on commit 8c9e465

Please sign in to comment.