commit a55b52f02761005a9fedfacaffb0f2c22557a724
parent 79df07303a611cc949cb1d52adf1a41e60b381f2
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 22 Apr 2021 12:32:37 +0300
test_upgrade{,_large}: removed use on unportable function
Usage of CORK is not required for upgraded connection,
CORK is not portable. To make test behavior unified for
all supported platforms, CORK usage is removed from tests.
Diffstat:
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,9 @@
+Thu 22 Apr 2021 12:32:00 MSK
+ Fixed some typos.
+ Force disable TCP_CORK, TCP_NOPUSH, and TCP_NODELAY before switching
+ connection to "upgraded" mode.
+ Improved portability of the test-suite for upgraded connections. -EG
+
Tue 20 Apr 2021 17:11:00 MSK
Disabled NLS by default in configure. -EG
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c
@@ -694,8 +694,6 @@ run_usock (void *cls)
{
struct MHD_UpgradeResponseHandle *urh = cls;
- MHD_upgrade_action (urh,
- MHD_UPGRADE_ACTION_CORK_OFF);
send_all (usock,
"Hello");
recv_all (usock,
diff --git a/src/microhttpd/test_upgrade_large.c b/src/microhttpd/test_upgrade_large.c
@@ -881,10 +881,6 @@ run_usock (void *cls)
{
struct MHD_UpgradeResponseHandle *urh = cls;
- if (MHD_YES !=
- MHD_upgrade_action (urh,
- MHD_UPGRADE_ACTION_CORK_OFF))
- abort ();
send_all (usock,
LARGE_STRING);
recv_all (usock,