diff options
Diffstat (limited to 'src/testspdy/test_requests_with_assets.c')
-rw-r--r-- | src/testspdy/test_requests_with_assets.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testspdy/test_requests_with_assets.c b/src/testspdy/test_requests_with_assets.c index 26d309e8..6ec927e8 100644 --- a/src/testspdy/test_requests_with_assets.c +++ b/src/testspdy/test_requests_with_assets.c | |||
@@ -226,8 +226,6 @@ parentproc() | |||
226 | printf("no daemon\n"); | 226 | printf("no daemon\n"); |
227 | return 1; | 227 | return 1; |
228 | } | 228 | } |
229 | |||
230 | timeout.tv_usec = 0; | ||
231 | 229 | ||
232 | do | 230 | do |
233 | { | 231 | { |
@@ -239,15 +237,17 @@ parentproc() | |||
239 | FD_ZERO(&read_fd_set); | 237 | FD_ZERO(&read_fd_set); |
240 | FD_ZERO(&write_fd_set); | 238 | FD_ZERO(&write_fd_set); |
241 | FD_ZERO(&except_fd_set); | 239 | FD_ZERO(&except_fd_set); |
242 | 240 | ||
243 | ret = SPDY_get_timeout(daemon, &timeoutlong); | 241 | ret = SPDY_get_timeout(daemon, &timeoutlong); |
244 | if(SPDY_NO == ret || timeoutlong > 1) | 242 | if(SPDY_NO == ret || timeoutlong > 1000) |
245 | { | 243 | { |
246 | timeout.tv_sec = 1; | 244 | timeout.tv_sec = 1; |
245 | timeout.tv_usec = 0; | ||
247 | } | 246 | } |
248 | else | 247 | else |
249 | { | 248 | { |
250 | timeout.tv_sec = timeoutlong; | 249 | timeout.tv_sec = timeoutlong / 1000; |
250 | timeout.tv_usec = (timeoutlong % 1000) * 1000; | ||
251 | } | 251 | } |
252 | 252 | ||
253 | maxfd = SPDY_get_fdset (daemon, | 253 | maxfd = SPDY_get_fdset (daemon, |