aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_quiesce.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_quiesce.c')
-rw-r--r--src/testcurl/test_quiesce.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/testcurl/test_quiesce.c b/src/testcurl/test_quiesce.c
index c42880ce..8a79a3c4 100644
--- a/src/testcurl/test_quiesce.c
+++ b/src/testcurl/test_quiesce.c
@@ -157,9 +157,10 @@ ServeOneRequest (void *param)
157 if (EINTR != errno) 157 if (EINTR != errno)
158 abort (); 158 abort ();
159#else 159#else
160 if ((WSAEINVAL != WSAGetLastError ()) ||(0 != rs.fd_count) ||(0 != 160 if ((WSAEINVAL != WSAGetLastError ()) || (0 != rs.fd_count) || (0 !=
161 ws.fd_count) 161 ws.
162 ||(0 != es.fd_count) ) 162 fd_count)
163 || (0 != es.fd_count) )
163 abort (); 164 abort ();
164 Sleep (1000); 165 Sleep (1000);
165#endif 166#endif
@@ -228,7 +229,8 @@ testGet (int type, int pool_count, int poll_flag)
228 MHD_OPTION_END); 229 MHD_OPTION_END);
229 230
230 } 231 }
231 else { 232 else
233 {
232 d = MHD_start_daemon (type | MHD_USE_ERROR_LOG | MHD_USE_ITC | poll_flag, 234 d = MHD_start_daemon (type | MHD_USE_ERROR_LOG | MHD_USE_ITC | poll_flag,
233 port, NULL, NULL, &ahc_echo, "GET", MHD_OPTION_END); 235 port, NULL, NULL, &ahc_echo, "GET", MHD_OPTION_END);
234 } 236 }
@@ -238,7 +240,7 @@ testGet (int type, int pool_count, int poll_flag)
238 { 240 {
239 const union MHD_DaemonInfo *dinfo; 241 const union MHD_DaemonInfo *dinfo;
240 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 242 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
241 if ((NULL == dinfo) ||(0 == dinfo->port) ) 243 if ((NULL == dinfo) || (0 == dinfo->port) )
242 { 244 {
243 MHD_stop_daemon (d); return 32; 245 MHD_stop_daemon (d); return 32;
244 } 246 }
@@ -395,7 +397,7 @@ testExternalGet ()
395 { 397 {
396 const union MHD_DaemonInfo *dinfo; 398 const union MHD_DaemonInfo *dinfo;
397 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 399 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
398 if ((NULL == dinfo) ||(0 == dinfo->port) ) 400 if ((NULL == dinfo) || (0 == dinfo->port) )
399 { 401 {
400 MHD_stop_daemon (d); return 32; 402 MHD_stop_daemon (d); return 32;
401 } 403 }
@@ -456,10 +458,10 @@ testExternalGet ()
456 if (EINTR != errno) 458 if (EINTR != errno)
457 abort (); 459 abort ();
458#else 460#else
459 if ((WSAEINVAL != WSAGetLastError ()) ||(0 != rs.fd_count) ||(0 != 461 if ((WSAEINVAL != WSAGetLastError ()) || (0 != rs.fd_count) || (0 !=
460 ws. 462 ws.
461 fd_count) 463 fd_count)
462 ||(0 != es.fd_count) ) 464 || (0 != es.fd_count) )
463 abort (); 465 abort ();
464 Sleep (1000); 466 Sleep (1000);
465#endif 467#endif
@@ -472,7 +474,7 @@ testExternalGet ()
472 break; 474 break;
473 if (msg->msg == CURLMSG_DONE) 475 if (msg->msg == CURLMSG_DONE)
474 { 476 {
475 if ((i == 0) &&(msg->data.result != CURLE_OK) ) 477 if ((i == 0) && (msg->data.result != CURLE_OK) )
476 printf ("%s failed at %s:%d: `%s'\n", 478 printf ("%s failed at %s:%d: `%s'\n",
477 "curl_multi_perform", 479 "curl_multi_perform",
478 __FILE__, 480 __FILE__,