From cc229aa68f13ecce55cfbc1cc032cc4d67c85b08 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 18 Apr 2014 19:40:15 +0200 Subject: waitress: Use standard socket buffer size libav* uses its own HTTP implementation and the API calls do not benefit from it anyway. --- src/libwaitress/waitress.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/libwaitress') 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); -- cgit v1.2.3