diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-01-29 09:59:11 +0100 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-01-29 09:59:11 +0100 |
commit | d38167c27597a8a114fde0f1fef2a73b3277ba36 (patch) | |
tree | 112f69452cf42e27441d32355f26c248208ec845 | |
parent | c60ac0abe03371fa3e928ebda1f8710bd5ef5a53 (diff) | |
download | pianobar-windows-d38167c27597a8a114fde0f1fef2a73b3277ba36.tar.gz pianobar-windows-d38167c27597a8a114fde0f1fef2a73b3277ba36.tar.bz2 pianobar-windows-d38167c27597a8a114fde0f1fef2a73b3277ba36.zip |
waitress: Increase tcp receive buffer
-rw-r--r-- | libwaitress/src/waitress.c | 3 |
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); |