summaryrefslogtreecommitdiff
path: root/libwaitress/src/waitress.c
diff options
context:
space:
mode:
Diffstat (limited to 'libwaitress/src/waitress.c')
-rw-r--r--libwaitress/src/waitress.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libwaitress/src/waitress.c b/libwaitress/src/waitress.c
index 1e28b2c..26ed493 100644
--- a/libwaitress/src/waitress.c
+++ b/libwaitress/src/waitress.c
@@ -334,6 +334,9 @@ WaitressReturn_t WaitressFetchCall (WaitressHandle_t *waith) {
sockpoll.fd = sockfd;
fcntl (sockfd, F_SETFL, O_NONBLOCK);
+ /* increase socket receive buffer */
+ const int sockopt = 256*1024;
+ setsockopt (sockfd, SOL_SOCKET, SO_RCVBUF, &sockopt, sizeof (sockopt));
/* non-blocking connect will return immediately */
connect (sockfd, res->ai_addr, res->ai_addrlen);