libmicrohttpd

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

commit e1cf053c5c69845dbeac646dc6d60ae402079022
parent d16bffe5eae8b65ed96b5fbc1383491591b7f66b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed, 14 Sep 2016 17:37:32 +0000

MHD_response_execute_upgrade_(): corrected loopback functions and error reporting.

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

diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c @@ -721,13 +721,13 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response, free (urh); return MHD_NO; } - if ( (! MHD_itc_nonblocking_(sv[0])) || - (! MHD_itc_nonblocking_(sv[1])) ) + if ( (! MHD_socket_nonblocking_(sv[0])) || + (! MHD_socket_nonblocking_(sv[1])) ) { #ifdef HAVE_MESSAGES MHD_DLOG (daemon, - _("Failed to make read side of inter-thread control channel non-blocking: %s\n"), - MHD_pipe_last_strerror_ ()); + _("Failed to make loopback sockets non-blocking: %s\n"), + MHD_socket_last_strerr_ ()); #endif } if ( (! MHD_SCKT_FD_FITS_FDSET_(sv[1], NULL)) &&