commit e2d6e58257e2bd25c881856cb7f1657df07d6c6f
parent abb47a11eced8d66dcf13183c264b8119db8923c
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sat, 17 Apr 2021 16:11:30 +0300
test_upgrade_large: do not uncork the socket
Uncorking of the socket is not required as it wasn't corked.
Moreover, uncorking always flush network buffers with Linux
kernel, while on all other platforms behavior is different.
As test should function on all platforms in the same way,
we shouldn't use unportable features.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/microhttpd/test_upgrade_large.c b/src/microhttpd/test_upgrade_large.c
@@ -511,8 +511,7 @@ wr_send (struct wr_socket *s,
ssize_t ret;
ret = MHD_send_ (s->fd, buf, len);
- (void) MHD_socket_cork_ (s->fd,
- false);
+
return ret;
}
#ifdef HTTPS_SUPPORT