From 81e644a40b7eead5402fe38ccb7f076b54344911 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 14 Oct 2012 01:38:10 +0200 Subject: Remove IncreaseOSBuffers() completely --- src/inspsocket.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 81e61f051..1326093b9 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -82,16 +82,6 @@ BufferedSocketError BufferedSocket::BeginConnect(const std::string &ipaddr, int return BeginConnect(addr, bind, maxtime); } -static void IncreaseOSBuffers(int fd) -{ - // attempt to increase socket sendq and recvq as high as its possible - int sendbuf = 32768; - int recvbuf = 32768; - setsockopt(fd,SOL_SOCKET,SO_SNDBUF,(const char *)&sendbuf,sizeof(sendbuf)); - setsockopt(fd,SOL_SOCKET,SO_RCVBUF,(const char *)&recvbuf,sizeof(recvbuf)); - // on failure, do nothing. I'm a little sick of people trying to interpret this message as a result of why their incorrect setups don't work. -} - BufferedSocketError BufferedSocket::BeginConnect(const irc::sockets::sockaddrs& dest, const irc::sockets::sockaddrs& bind, unsigned long timeout) { if (fd < 0) -- cgit v1.2.3