diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2014-03-14 11:55:44 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2014-03-14 11:55:44 +0100 |
commit | 8e685c992516834e35bcccea1f61c39a9d847e2f (patch) | |
tree | 1d8b311efc9e3d88361e7a45d85c5493b9c1986a /src/libwaitress | |
parent | 90f6ffbdb7c7cc07cb02b69fcfb3a3844f0180b7 (diff) | |
download | pianobar-windows-8e685c992516834e35bcccea1f61c39a9d847e2f.tar.gz pianobar-windows-8e685c992516834e35bcccea1f61c39a9d847e2f.tar.bz2 pianobar-windows-8e685c992516834e35bcccea1f61c39a9d847e2f.zip |
waitress: Increase kernel receive buffer
Suggested in #426. Should be large enough for a complete song now (if
permitted by sysctl). The correct solution™ would be a buffer in
userspace though.
Diffstat (limited to 'src/libwaitress')
-rw-r--r-- | src/libwaitress/waitress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libwaitress/waitress.c b/src/libwaitress/waitress.c index af3cc1a..2910d68 100644 --- a/src/libwaitress/waitress.c +++ b/src/libwaitress/waitress.c @@ -808,7 +808,7 @@ static WaitressReturn_t WaitressConnect (WaitressHandle_t *waith) { fcntl (sock, F_SETFL, O_NONBLOCK); /* increase socket receive buffer */ - const int sockopt = 256*1024; + const int sockopt = 5*1024*1024; setsockopt (sock, SOL_SOCKET, SO_RCVBUF, &sockopt, sizeof (sockopt)); |