libmicrohttpd

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

commit 6daee7466367848d2304283c0c1ee8d8f653a5f0
parent 22e9f3c1dc58f10c005a71adb9e66d5700dc15d4
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  4 Sep 2016 16:39:42 +0000

use MHD close

Diffstat:
Msrc/microhttpd/test_upgrade_common.c | 3++-
Msrc/microhttpd/test_upgrade_ssl.c | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/test_upgrade_common.c b/src/microhttpd/test_upgrade_common.c @@ -60,7 +60,8 @@ make_blocking (MHD_socket fd) if (-1 == flags) return; if ((flags & ~O_NONBLOCK) != flags) - fcntl (fd, F_SETFL, flags & ~O_NONBLOCK); + if (-1 == fcntl (fd, F_SETFL, flags & ~O_NONBLOCK)) + abort (); } diff --git a/src/microhttpd/test_upgrade_ssl.c b/src/microhttpd/test_upgrade_ssl.c @@ -78,7 +78,7 @@ openssl_connect (int *sock, (void) close (1); dup2 (sp[0], 0); dup2 (sp[0], 1); - close (sp[0]); + MHD_socket_close_ (sp[0]); sprintf (destination, "localhost:%u", (unsigned int) port);