aboutsummaryrefslogtreecommitdiff
path: root/src/testspdy/test_request_response_with_callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testspdy/test_request_response_with_callback.c')
-rw-r--r--src/testspdy/test_request_response_with_callback.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testspdy/test_request_response_with_callback.c b/src/testspdy/test_request_response_with_callback.c
index c22917c5..6eed8eba 100644
--- a/src/testspdy/test_request_response_with_callback.c
+++ b/src/testspdy/test_request_response_with_callback.c
@@ -176,8 +176,6 @@ parentproc()
176 printf("no daemon\n"); 176 printf("no daemon\n");
177 return 1; 177 return 1;
178 } 178 }
179
180 timeout.tv_usec = 0;
181 179
182 do 180 do
183 { 181 {
@@ -186,13 +184,15 @@ parentproc()
186 FD_ZERO(&except_fd_set); 184 FD_ZERO(&except_fd_set);
187 185
188 ret = SPDY_get_timeout(daemon, &timeoutlong); 186 ret = SPDY_get_timeout(daemon, &timeoutlong);
189 if(SPDY_NO == ret || timeoutlong > 1) 187 if(SPDY_NO == ret || timeoutlong > 1000)
190 { 188 {
191 timeout.tv_sec = 1; 189 timeout.tv_sec = 1;
190 timeout.tv_usec = 0;
192 } 191 }
193 else 192 else
194 { 193 {
195 timeout.tv_sec = timeoutlong; 194 timeout.tv_sec = timeoutlong / 1000;
195 timeout.tv_usec = (timeoutlong % 1000) * 1000;
196 } 196 }
197 197
198 maxfd = SPDY_get_fdset (daemon, 198 maxfd = SPDY_get_fdset (daemon,