diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-06-19 09:36:18 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-06-19 09:36:18 +0200 |
commit | 3631791ee6431abf3dfec7db698f2a2778a867c3 (patch) | |
tree | c17776392b7a2f39294855da203a3d1aa64908dc /libwaitress/src | |
parent | 6a0f620ddc8c72fc97d1ecb9ed8ab77c9e056745 (diff) | |
download | pianobar-3631791ee6431abf3dfec7db698f2a2778a867c3.tar.gz pianobar-3631791ee6431abf3dfec7db698f2a2778a867c3.tar.bz2 pianobar-3631791ee6431abf3dfec7db698f2a2778a867c3.zip |
waitress: Documentation
Diffstat (limited to 'libwaitress/src')
-rw-r--r-- | libwaitress/src/waitress.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libwaitress/src/waitress.c b/libwaitress/src/waitress.c index b3ef618..8746ae0 100644 --- a/libwaitress/src/waitress.c +++ b/libwaitress/src/waitress.c @@ -333,7 +333,9 @@ WaitressReturn_t WaitressFetchCall (WaitressHandle_t *waith) { } sockpoll.fd = sockfd; + /* we need shorter timeouts for connect() */ fcntl (sockfd, F_SETFL, O_NONBLOCK); + /* increase socket receive buffer */ const int sockopt = 256*1024; setsockopt (sockfd, SOL_SOCKET, SO_RCVBUF, &sockopt, sizeof (sockopt)); |