diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-17 19:12:08 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-17 20:56:19 +0200 |
commit | dab960711f64b62dc447a66d98705dbb51407ca8 (patch) | |
tree | 25990d73acc6187f26578457ba7d1f127a302c36 | |
parent | 35877189f6be4a7a0c2057cf750beb1acb47fe03 (diff) | |
download | libmicrohttpd-dab960711f64b62dc447a66d98705dbb51407ca8.tar.gz libmicrohttpd-dab960711f64b62dc447a66d98705dbb51407ca8.zip |
avoid log message on EOPNOTSUPP for UNIX domain sockets, as suggested by Markus
-rw-r--r-- | src/microhttpd/daemon.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 97e0ec30..e5d40861 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -3259,8 +3259,9 @@ MHD_accept_connection (struct MHD_Daemon *daemon) | |||
3259 | #if defined(MHD_TCP_CORK_NOPUSH) || defined(HAVE_MSG_MORE) | 3259 | #if defined(MHD_TCP_CORK_NOPUSH) || defined(HAVE_MSG_MORE) |
3260 | /* We will use TCP_CORK or TCP_NOPUSH or MSG_MORE to control | 3260 | /* We will use TCP_CORK or TCP_NOPUSH or MSG_MORE to control |
3261 | transmission, disable Nagle's algorithm (always) */ | 3261 | transmission, disable Nagle's algorithm (always) */ |
3262 | if (0 != MHD_socket_set_nodelay_ (s, | 3262 | if ( (0 != MHD_socket_set_nodelay_ (s, |
3263 | true)) | 3263 | true)) && |
3264 | (EOPNOTSUPP != errno) ) | ||
3264 | { | 3265 | { |
3265 | #ifdef HAVE_MESSAGES | 3266 | #ifdef HAVE_MESSAGES |
3266 | MHD_DLOG (daemon, | 3267 | MHD_DLOG (daemon, |