summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-10 14:12:05 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-10 14:12:05 +0200
commit1af89ef6e2b766a943b45cb120038cf0dd2be32d (patch)
treebfefa14617f8a330ed101ab3e44d626724101a46 /main.c
parenta8525ebecfc6da0aa3aa26f7170a46d9e39e3589 (diff)
set timeout on socket wait to 0.5 sec
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index d90eeee0..3cdf60a9 100644
--- a/main.c
+++ b/main.c
@@ -370,7 +370,7 @@ server_loop (void *ctx) {
FD_ZERO(&rds);
while (!server_terminate) {
FD_SET(srv_socket, &rds);
- timeout.tv_usec = 50000;
+ timeout.tv_usec = 500000;
if ((ret = select(srv_socket + 1, &rds, NULL, NULL, &timeout)) < 0 && errno != EINTR) {
perror("select");
exit (-1);