aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2024-01-02 15:46:10 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2024-01-02 15:46:10 +0300
commit156e10012c539472c0387c5904d4c29b257499af (patch)
tree8a5ab13730fb4521844a51f446e260a3198c7762
parent8bb89d0be44c6667be546353f691bae62d63c9de (diff)
downloadlibmicrohttpd-156e10012c539472c0387c5904d4c29b257499af.tar.gz
libmicrohttpd-156e10012c539472c0387c5904d4c29b257499af.zip
test_upgrade: changed the order of send/receive
-rw-r--r--src/microhttpd/test_upgrade.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c
index 8264e13b..b612d169 100644
--- a/src/microhttpd/test_upgrade.c
+++ b/src/microhttpd/test_upgrade.c
@@ -1444,16 +1444,16 @@ run_usock (void *cls)
1444{ 1444{
1445 struct MHD_UpgradeResponseHandle *urh = cls; 1445 struct MHD_UpgradeResponseHandle *urh = cls;
1446 1446
1447 send_all_stext (usock,
1448 "Hello");
1449 recv_all_stext (usock, 1447 recv_all_stext (usock,
1450 "World"); 1448 "Hello");
1451 send_all_stext (usock, 1449 send_all_stext (usock,
1450 "World");
1451 recv_all_stext (usock,
1452 "Finished"); 1452 "Finished");
1453 if (! test_tls) 1453 if (! test_tls)
1454 { 1454 {
1455 send_eof (usock);
1456 receive_eof (usock); 1455 receive_eof (usock);
1456 send_eof (usock);
1457 } 1457 }
1458 MHD_upgrade_action (urh, 1458 MHD_upgrade_action (urh,
1459 MHD_UPGRADE_ACTION_CLOSE); 1459 MHD_UPGRADE_ACTION_CLOSE);
@@ -1478,16 +1478,16 @@ run_usock_client (void *cls)
1478 send_all_stext (sock, 1478 send_all_stext (sock,
1479 "GET / HTTP/1.1\r\nHost: localhost\r\nConnection: Upgrade\r\n\r\n"); 1479 "GET / HTTP/1.1\r\nHost: localhost\r\nConnection: Upgrade\r\n\r\n");
1480 recv_hdr (sock); 1480 recv_hdr (sock);
1481 recv_all_stext (sock,
1482 "Hello");
1483 send_all_stext (sock, 1481 send_all_stext (sock,
1484 "World"); 1482 "Hello");
1485 recv_all_stext (sock, 1483 recv_all_stext (sock,
1484 "World");
1485 send_all_stext (sock,
1486 "Finished"); 1486 "Finished");
1487 if (! test_tls) 1487 if (! test_tls)
1488 { 1488 {
1489 receive_eof (sock);
1490 send_eof (sock); 1489 send_eof (sock);
1490 receive_eof (sock);
1491 } 1491 }
1492 wr_close (sock); 1492 wr_close (sock);
1493 client_done = true; 1493 client_done = true;