diff options
Diffstat (limited to 'src/testspdy/test_new_connection.c')
-rw-r--r-- | src/testspdy/test_new_connection.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testspdy/test_new_connection.c b/src/testspdy/test_new_connection.c index 8d13004f..1a9e47a4 100644 --- a/src/testspdy/test_new_connection.c +++ b/src/testspdy/test_new_connection.c | |||
@@ -897,8 +897,6 @@ parentproc(int child) | |||
897 | printf("no daemon\n"); | 897 | printf("no daemon\n"); |
898 | return 1; | 898 | return 1; |
899 | } | 899 | } |
900 | |||
901 | timeout.tv_usec = 0; | ||
902 | 900 | ||
903 | do | 901 | do |
904 | { | 902 | { |
@@ -907,13 +905,15 @@ parentproc(int child) | |||
907 | FD_ZERO(&except_fd_set); | 905 | FD_ZERO(&except_fd_set); |
908 | 906 | ||
909 | ret = SPDY_get_timeout(daemon, &timeoutlong); | 907 | ret = SPDY_get_timeout(daemon, &timeoutlong); |
910 | if(SPDY_NO == ret || timeoutlong > 1) | 908 | if(SPDY_NO == ret || timeoutlong > 1000) |
911 | { | 909 | { |
912 | timeout.tv_sec = 1; | 910 | timeout.tv_sec = 1; |
911 | timeout.tv_usec = 0; | ||
913 | } | 912 | } |
914 | else | 913 | else |
915 | { | 914 | { |
916 | timeout.tv_sec = timeoutlong; | 915 | timeout.tv_sec = timeoutlong / 1000; |
916 | timeout.tv_usec = (timeoutlong % 1000) * 1000; | ||
917 | } | 917 | } |
918 | 918 | ||
919 | maxfd = SPDY_get_fdset (daemon, | 919 | maxfd = SPDY_get_fdset (daemon, |