aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-04-15 18:58:58 +0300
committerChristian Grothoff <christian@grothoff.org>2021-04-16 10:25:37 +0200
commitfadba1133cc4e67ce8dd9d9709edd76f9285c704 (patch)
treea13f8e74e7e8314d3da7a41d50b6edb5d1fd4bfa /src/microhttpd/internal.h
parentddf368bb6d1093657ab29cb5af894bdc2b93788f (diff)
downloadlibmicrohttpd-fadba1133cc4e67ce8dd9d9709edd76f9285c704.tar.gz
libmicrohttpd-fadba1133cc4e67ce8dd9d9709edd76f9285c704.zip
fix #6768: do not use TCP-specific syscalls on UNIX domain sockets
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r--src/microhttpd/internal.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index dc38bada..c939d3e2 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -994,6 +994,11 @@ struct MHD_Connection
994 MHD_socket socket_fd; 994 MHD_socket socket_fd;
995 995
996 /** 996 /**
997 * true if #socket_fd is a UNIX domain socket, false (TCP) otherwise.
998 */
999 bool is_unix;
1000
1001 /**
997 * true if #socket_fd is non-blocking, false otherwise. 1002 * true if #socket_fd is non-blocking, false otherwise.
998 */ 1003 */
999 bool sk_nonblck; 1004 bool sk_nonblck;
@@ -1459,11 +1464,17 @@ struct MHD_Daemon
1459 int epoll_fd; 1464 int epoll_fd;
1460 1465
1461 /** 1466 /**
1462 * true if the listen socket is in the 'epoll' set, 1467 * true if the @e listen_fd socket is in the 'epoll' set,
1463 * false if not. 1468 * false if not.
1464 */ 1469 */
1465 bool listen_socket_in_epoll; 1470 bool listen_socket_in_epoll;
1466 1471
1472 /**
1473 * true if the @e listen_fd socket is a UNIX domain socket,
1474 * false if not.
1475 */
1476 bool listen_is_unix;
1477
1467#ifdef UPGRADE_SUPPORT 1478#ifdef UPGRADE_SUPPORT
1468#ifdef HTTPS_SUPPORT 1479#ifdef HTTPS_SUPPORT
1469 /** 1480 /**