diff options
Diffstat (limited to 'src/microhttpd/test_upgrade_ssl.c')
-rw-r--r-- | src/microhttpd/test_upgrade_ssl.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/src/microhttpd/test_upgrade_ssl.c b/src/microhttpd/test_upgrade_ssl.c index 8077f402..bcbf0e54 100644 --- a/src/microhttpd/test_upgrade_ssl.c +++ b/src/microhttpd/test_upgrade_ssl.c | |||
@@ -245,24 +245,14 @@ run_usock (void *cls) | |||
245 | { | 245 | { |
246 | struct MHD_UpgradeResponseHandle *urh = cls; | 246 | struct MHD_UpgradeResponseHandle *urh = cls; |
247 | 247 | ||
248 | fprintf (stderr, | ||
249 | "Sending `Hello'\n"); | ||
250 | send_all (usock, | 248 | send_all (usock, |
251 | "Hello"); | 249 | "Hello"); |
252 | fprintf (stderr, | ||
253 | "Receiving `World'\n"); | ||
254 | recv_all (usock, | 250 | recv_all (usock, |
255 | "World"); | 251 | "World"); |
256 | fprintf (stderr, | ||
257 | "Sending `Finished'\n"); | ||
258 | send_all (usock, | 252 | send_all (usock, |
259 | "Finished"); | 253 | "Finished"); |
260 | fprintf (stderr, | ||
261 | "Closing socket\n"); | ||
262 | MHD_upgrade_action (urh, | 254 | MHD_upgrade_action (urh, |
263 | MHD_UPGRADE_ACTION_CLOSE); | 255 | MHD_UPGRADE_ACTION_CLOSE); |
264 | fprintf (stderr, | ||
265 | "Thread terminating\n"); | ||
266 | return NULL; | 256 | return NULL; |
267 | } | 257 | } |
268 | 258 | ||
@@ -430,22 +420,16 @@ test_upgrade_internal_select () | |||
430 | recv_hdr (sock); | 420 | recv_hdr (sock); |
431 | recv_all (sock, | 421 | recv_all (sock, |
432 | "Hello"); | 422 | "Hello"); |
433 | fprintf (stderr, | ||
434 | "Received `Hello'\n"); | ||
435 | send_all (sock, | 423 | send_all (sock, |
436 | "World"); | 424 | "World"); |
437 | fprintf (stderr, | ||
438 | "Sent `World'\n"); | ||
439 | recv_all (sock, | 425 | recv_all (sock, |
440 | "Finished"); | 426 | "Finished"); |
441 | fprintf (stderr, | ||
442 | "Received `Finished'\n"); | ||
443 | MHD_socket_close_ (sock); | 427 | MHD_socket_close_ (sock); |
444 | pthread_join (pt, | 428 | pthread_join (pt, |
445 | NULL); | 429 | NULL); |
446 | fprintf (stderr, | 430 | waitpid (pid, |
447 | "Joined helper thread\n"); | 431 | NULL, |
448 | waitpid (pid, NULL, 0); | 432 | 0); |
449 | MHD_stop_daemon (d); | 433 | MHD_stop_daemon (d); |
450 | return 0; | 434 | return 0; |
451 | } | 435 | } |