changeset 24026:dec604030d92

Fix UDP select timeout. patch by Tim Wojtulewicz, timwoj ieee org
author diego
date Sun, 12 Aug 2007 12:16:11 +0000
parents 660da8e023ec
children 0530865bb02a
files stream/udp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream/udp.c	Thu Aug 09 20:13:53 2007 +0000
+++ b/stream/udp.c	Sun Aug 12 12:16:11 2007 +0000
@@ -163,8 +163,8 @@
     }
   }
 
-  tv.tv_sec = 0;
-  tv.tv_usec = (1 * 1000000);	/* 1 second timeout */
+  tv.tv_sec = 1; /* 1 second timeout */
+  tv.tv_usec = 0;
 
   FD_ZERO (&set);
   FD_SET (socket_server_fd, &set);