From 99d1c8f0ab4a213a5087b6103ca07a8cb355c2c2 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 16 Apr 2005 15:19:50 +0000 Subject: Fixed lingering (SO_REUSEADDR was being set to 0?) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1111 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/connection.cpp') diff --git a/src/connection.cpp b/src/connection.cpp index 4226a9d2f..b197caef1 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -61,7 +61,7 @@ bool connection::CreateListener(char* host, int p) setsockopt(fd,SOL_SOCKET,SO_REUSEADDR,(const char*)&on,sizeof(on)); linger.l_onoff = 1; - linger.l_linger = 0; + linger.l_linger = 1; setsockopt(fd,SOL_SOCKET,SO_LINGER,(const char*)&linger,sizeof(linger)); // attempt to increase socket sendq and recvq as high as its possible -- cgit v1.2.3