# HG changeset patch # User rosfran # Date 1169064524 0 # Node ID 8cab5caf8d09b9e3b012cecd6ac395a0e887f0c3 # Parent f249c6e05094e7c8797ec3c0c3999186199bac27 [svn r273] Fixes the timeout bug, it uses to happen in some network topologies, like the WLANs, which throws TIMED_OUT sockets when trying to opening them. diff -r f249c6e05094 -r 8cab5caf8d09 gmyth/src/gmyth_socket.c --- a/gmyth/src/gmyth_socket.c Wed Jan 17 19:15:16 2007 +0000 +++ b/gmyth/src/gmyth_socket.c Wed Jan 17 20:08:44 2007 +0000 @@ -568,8 +568,8 @@ gmyth_debug ("XXXXXXXXXXX setting timeout %ld\n", timeout_val->tv_sec); timeout_val->tv_usec = 0; } else { - timeout_val->tv_sec = 0; - gmyth_debug ("XXXXXXXXXXX timeout is ZERO. Setting timeout to the default value of 100 microseconds -> %ld\n", timeout_val->tv_sec); + timeout_val->tv_sec = 5; + gmyth_debug ("XXXXXXXXXXX timeout is ZERO. Setting timeout to the default value of 5 seconds, 100 microseconds -> %ld\n", timeout_val->tv_sec); timeout_val->tv_usec = 100; }