aboutsummaryrefslogtreecommitdiff
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)
downloadlibmicrohttpd-e1cf053c5c69845dbeac646dc6d60ae402079022.tar.gz
libmicrohttpd-e1cf053c5c69845dbeac646dc6d60ae402079022.zip
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,
721 free (urh); 721 free (urh);
722 return MHD_NO; 722 return MHD_NO;
723 } 723 }
724 if ( (! MHD_itc_nonblocking_(sv[0])) || 724 if ( (! MHD_socket_nonblocking_(sv[0])) ||
725 (! MHD_itc_nonblocking_(sv[1])) ) 725 (! MHD_socket_nonblocking_(sv[1])) )
726 { 726 {
727#ifdef HAVE_MESSAGES 727#ifdef HAVE_MESSAGES
728 MHD_DLOG (daemon, 728 MHD_DLOG (daemon,
729 _("Failed to make read side of inter-thread control channel non-blocking: %s\n"), 729 _("Failed to make loopback sockets non-blocking: %s\n"),
730 MHD_pipe_last_strerror_ ()); 730 MHD_socket_last_strerr_ ());
731#endif 731#endif
732 } 732 }
733 if ( (! MHD_SCKT_FD_FITS_FDSET_(sv[1], NULL)) && 733 if ( (! MHD_SCKT_FD_FITS_FDSET_(sv[1], NULL)) &&