aboutsummaryrefslogtreecommitdiff
path: root/src/testspdy/test_notls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testspdy/test_notls.c')
-rw-r--r--src/testspdy/test_notls.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testspdy/test_notls.c b/src/testspdy/test_notls.c
index 93462cd9..ec42920e 100644
--- a/src/testspdy/test_notls.c
+++ b/src/testspdy/test_notls.c
@@ -859,8 +859,6 @@ parentproc( int port)
859 printf("no daemon\n"); 859 printf("no daemon\n");
860 return 1; 860 return 1;
861 } 861 }
862
863 timeout.tv_usec = 0;
864 862
865 do 863 do
866 { 864 {
@@ -869,13 +867,15 @@ parentproc( int port)
869 FD_ZERO(&except_fd_set); 867 FD_ZERO(&except_fd_set);
870 868
871 ret = SPDY_get_timeout(daemon, &timeoutlong); 869 ret = SPDY_get_timeout(daemon, &timeoutlong);
872 if(SPDY_NO == ret || timeoutlong > 1) 870 if(SPDY_NO == ret || timeoutlong > 1000)
873 { 871 {
874 timeout.tv_sec = 1; 872 timeout.tv_sec = 1;
873 timeout.tv_usec = 0;
875 } 874 }
876 else 875 else
877 { 876 {
878 timeout.tv_sec = timeoutlong; 877 timeout.tv_sec = timeoutlong / 1000;
878 timeout.tv_usec = (timeoutlong % 1000) * 1000;
879 } 879 }
880 880
881 maxfd = SPDY_get_fdset (daemon, 881 maxfd = SPDY_get_fdset (daemon,