summaryrefslogtreecommitdiffstats
path: root/nanohttp
diff options
context:
space:
mode:
authorGravatar snowdrop2005-07-15 19:59:30 +0000
committerGravatar snowdrop2005-07-15 19:59:30 +0000
commit24409cb9269eab38d4c48d2732a75b46995629b7 (patch)
tree8b78b3aae17cbf3d70b598614b184d2521702498 /nanohttp
parent232ff6e28d1fce08472a2f7a965d83d3e008d84c (diff)
downloadcsoap-24409cb9269eab38d4c48d2732a75b46995629b7.tar.gz
csoap-24409cb9269eab38d4c48d2732a75b46995629b7.tar.bz2
Fix from mailinglist 05.06.2005 with subject "Small fix form nanohttp"
from christian.
Diffstat (limited to 'nanohttp')
-rw-r--r--nanohttp/nanohttp-server.c7
1 files changed, 6 insertions, 1 deletions
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);