libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 156e10012c539472c0387c5904d4c29b257499af
parent 8bb89d0be44c6667be546353f691bae62d63c9de
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue,  2 Jan 2024 15:46:10 +0300

test_upgrade: changed the order of send/receive

Diffstat:
Msrc/microhttpd/test_upgrade.c | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c @@ -1444,16 +1444,16 @@ run_usock (void *cls) { struct MHD_UpgradeResponseHandle *urh = cls; - send_all_stext (usock, - "Hello"); recv_all_stext (usock, - "World"); + "Hello"); send_all_stext (usock, + "World"); + recv_all_stext (usock, "Finished"); if (! test_tls) { - send_eof (usock); receive_eof (usock); + send_eof (usock); } MHD_upgrade_action (urh, MHD_UPGRADE_ACTION_CLOSE); @@ -1478,16 +1478,16 @@ run_usock_client (void *cls) send_all_stext (sock, "GET / HTTP/1.1\r\nHost: localhost\r\nConnection: Upgrade\r\n\r\n"); recv_hdr (sock); - recv_all_stext (sock, - "Hello"); send_all_stext (sock, - "World"); + "Hello"); recv_all_stext (sock, + "World"); + send_all_stext (sock, "Finished"); if (! test_tls) { - receive_eof (sock); send_eof (sock); + receive_eof (sock); } wr_close (sock); client_done = true;