summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-09-14 17:37:32 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-09-14 17:37:32 +0000
commite1cf053c5c69845dbeac646dc6d60ae402079022 (patch)
tree6105f682d9cd96980aacfdbfd07c9b3a7d439692
parentd16bffe5eae8b65ed96b5fbc1383491591b7f66b (diff)
MHD_response_execute_upgrade_(): corrected loopback functions and error reporting.
-rw-r--r--src/microhttpd/response.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index 3a6b9166..65a0a287 100644
--- 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)) &&