diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-10-14 01:38:10 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-10-14 01:44:18 +0200 |
commit | 81e644a40b7eead5402fe38ccb7f076b54344911 (patch) | |
tree | 893e9dd924c6690663c7ae66a45067fcc1371a2d | |
parent | 272208502c426f5bb6abdb13b8986b686afbb904 (diff) |
Remove IncreaseOSBuffers() completely
-rw-r--r-- | src/inspsocket.cpp | 10 |
1 files changed, 0 insertions, 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) |