From 24409cb9269eab38d4c48d2732a75b46995629b7 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Fri, 15 Jul 2005 19:59:30 +0000 Subject: Fix from mailinglist 05.06.2005 with subject "Small fix form nanohttp" from christian. --- nanohttp/nanohttp-server.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nanohttp/nanohttp-server.c b/nanohttp/nanohttp-server.c index 742ecc3..8a8d1e1 100644 --- a/nanohttp/nanohttp-server.c +++ b/nanohttp/nanohttp-server.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-server.c,v 1.32 2005/05/27 19:28:15 snowdrop Exp $ +* $Id: nanohttp-server.c,v 1.33 2005/07/15 19:59:30 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -661,6 +661,11 @@ httpd_run () /* Wait for a socket to accept */ while (_httpd_run) { + + /* set struct timeval to the proper timeout */ + timeout.tv_sec = 1; + timeout.tv_usec = 0; + /* zero and set file descriptior */ FD_ZERO (&fds); FD_SET (_httpd_socket, &fds); -- cgit v1.1-32-gdbae