diff options
Diffstat (limited to 'src/testspdy/test_misc.c')
-rw-r--r-- | src/testspdy/test_misc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/testspdy/test_misc.c b/src/testspdy/test_misc.c index 84728d0d..a39afa66 100644 --- a/src/testspdy/test_misc.c +++ b/src/testspdy/test_misc.c | |||
@@ -210,7 +210,6 @@ parentproc() | |||
210 | return 1; | 210 | return 1; |
211 | } | 211 | } |
212 | 212 | ||
213 | timeout.tv_usec = 0; | ||
214 | create_child(); | 213 | create_child(); |
215 | 214 | ||
216 | do | 215 | do |
@@ -220,13 +219,15 @@ parentproc() | |||
220 | FD_ZERO(&except_fd_set); | 219 | FD_ZERO(&except_fd_set); |
221 | 220 | ||
222 | ret = SPDY_get_timeout(daemon, &timeoutlong); | 221 | ret = SPDY_get_timeout(daemon, &timeoutlong); |
223 | if(SPDY_NO == ret || timeoutlong > 1) | 222 | if(SPDY_NO == ret || timeoutlong > 1000) |
224 | { | 223 | { |
225 | timeout.tv_sec = 1; | 224 | timeout.tv_sec = 1; |
225 | timeout.tv_usec = 0; | ||
226 | } | 226 | } |
227 | else | 227 | else |
228 | { | 228 | { |
229 | timeout.tv_sec = timeoutlong; | 229 | timeout.tv_sec = timeoutlong / 1000; |
230 | timeout.tv_usec = (timeoutlong % 1000) * 1000; | ||
230 | } | 231 | } |
231 | 232 | ||
232 | maxfd = SPDY_get_fdset (daemon, | 233 | maxfd = SPDY_get_fdset (daemon, |