summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-04-18 19:40:15 +0200
committerLars-Dominik Braun <lars@6xq.net>2014-04-18 19:41:45 +0200
commitcc229aa68f13ecce55cfbc1cc032cc4d67c85b08 (patch)
treebdd550bfb343f8c9c249bbf2ce8f4822ff822c65 /src
parenta542ddde796c4b71ac6dd2250c957906f78d344a (diff)
downloadpianobar-windows-cc229aa68f13ecce55cfbc1cc032cc4d67c85b08.tar.gz
pianobar-windows-cc229aa68f13ecce55cfbc1cc032cc4d67c85b08.tar.bz2
pianobar-windows-cc229aa68f13ecce55cfbc1cc032cc4d67c85b08.zip
waitress: Use standard socket buffer size
libav* uses its own HTTP implementation and the API calls do not benefit from it anyway.
Diffstat (limited to 'src')
-rw-r--r--src/libwaitress/waitress.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libwaitress/waitress.c b/src/libwaitress/waitress.c
index 334591c..f760b80 100644
--- a/src/libwaitress/waitress.c
+++ b/src/libwaitress/waitress.c
@@ -807,11 +807,6 @@ static WaitressReturn_t WaitressConnect (WaitressHandle_t *waith) {
/* we need shorter timeouts for connect() */
fcntl (sock, F_SETFL, O_NONBLOCK);
- /* increase socket receive buffer */
- const int sockopt = 5*1024*1024;
- setsockopt (sock, SOL_SOCKET, SO_RCVBUF, &sockopt,
- sizeof (sockopt));
-
/* non-blocking connect will return immediately */
connect (sock, gacurr->ai_addr, gacurr->ai_addrlen);