changed default timeout value - fiche - A pastebin adjusted for gopher use
(HTM) git clone git://vernunftzentrum.de/fiche.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit cb774abf27c10a8ba300a4e4ae11a5c8c2d174df
(DIR) parent 6ee6fa3100537bfbe10bef2c0e11b19b1a88ef84
(HTM) Author: solusipse <solus1ps3@gmail.com>
Date: Tue, 17 Sep 2013 01:28:36 +0200
changed default timeout value
Diffstat:
fiche.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/fiche.c b/fiche.c
@@ -113,7 +113,7 @@ void perform_connection(int listen_socket)
int connection_socket = accept(listen_socket, (struct sockaddr *) &client_address, (void *) &address_lenght);
struct timeval timeout;
- timeout.tv_sec = 120;
+ timeout.tv_sec = 5;
timeout.tv_usec = 0;
if (setsockopt (connection_socket, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, sizeof(timeout)) < 0)