diff options
Diffstat (limited to 'src/testspdy/test_request_response.c')
-rw-r--r-- | src/testspdy/test_request_response.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testspdy/test_request_response.c b/src/testspdy/test_request_response.c index 4591849e..6c311be3 100644 --- a/src/testspdy/test_request_response.c +++ b/src/testspdy/test_request_response.c | |||
@@ -908,8 +908,6 @@ parentproc( int port) | |||
908 | printf("no daemon\n"); | 908 | printf("no daemon\n"); |
909 | return 1; | 909 | return 1; |
910 | } | 910 | } |
911 | |||
912 | timeout.tv_usec = 0; | ||
913 | 911 | ||
914 | do | 912 | do |
915 | { | 913 | { |
@@ -918,13 +916,15 @@ parentproc( int port) | |||
918 | FD_ZERO(&except_fd_set); | 916 | FD_ZERO(&except_fd_set); |
919 | 917 | ||
920 | ret = SPDY_get_timeout(daemon, &timeoutlong); | 918 | ret = SPDY_get_timeout(daemon, &timeoutlong); |
921 | if(SPDY_NO == ret || timeoutlong > 1) | 919 | if(SPDY_NO == ret || timeoutlong > 1000) |
922 | { | 920 | { |
923 | timeout.tv_sec = 1; | 921 | timeout.tv_sec = 1; |
922 | timeout.tv_usec = 0; | ||
924 | } | 923 | } |
925 | else | 924 | else |
926 | { | 925 | { |
927 | timeout.tv_sec = timeoutlong; | 926 | timeout.tv_sec = timeoutlong / 1000; |
927 | timeout.tv_usec = (timeoutlong % 1000) * 1000; | ||
928 | } | 928 | } |
929 | 929 | ||
930 | maxfd = SPDY_get_fdset (daemon, | 930 | maxfd = SPDY_get_fdset (daemon, |