From 3631791ee6431abf3dfec7db698f2a2778a867c3 Mon Sep 17 00:00:00 2001
From: Lars-Dominik Braun <PromyLOPh@lavabit.com>
Date: Sat, 19 Jun 2010 09:36:18 +0200
Subject: waitress: Documentation

---
 libwaitress/src/waitress.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'libwaitress')

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));
-- 
cgit v1.2.3