[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. trunk
authorrosfran
Wed Jan 17 20:08:44 2007 +0000 (2007-01-17)
branchtrunk
changeset 2728cab5caf8d09
parent 271 f249c6e05094
child 273 4a7fc19705f0
[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.
gmyth/src/gmyth_socket.c
     1.1 --- a/gmyth/src/gmyth_socket.c	Wed Jan 17 19:15:16 2007 +0000
     1.2 +++ b/gmyth/src/gmyth_socket.c	Wed Jan 17 20:08:44 2007 +0000
     1.3 @@ -568,8 +568,8 @@
     1.4  	    gmyth_debug ("XXXXXXXXXXX setting timeout %ld\n", timeout_val->tv_sec);
     1.5              timeout_val->tv_usec = 0;
     1.6  	} else {
     1.7 -      timeout_val->tv_sec = 0;
     1.8 -	    gmyth_debug ("XXXXXXXXXXX timeout is ZERO. Setting timeout to the default value of 100 microseconds -> %ld\n", timeout_val->tv_sec);
     1.9 +      timeout_val->tv_sec = 5;
    1.10 +	    gmyth_debug ("XXXXXXXXXXX timeout is ZERO. Setting timeout to the default value of 5 seconds, 100 microseconds -> %ld\n", timeout_val->tv_sec);
    1.11        timeout_val->tv_usec = 100;
    1.12  	}
    1.13