libmicrohttpd

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

commit abb47a11eced8d66dcf13183c264b8119db8923c
parent 99f2df6dea40624ff82b00ebe362e587f722985f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sat, 17 Apr 2021 16:45:29 +0300

mhd_send: fixed log messaged broken by 99f2df6dea40624ff82b00ebe362e587f722985f

Diffstat:
Msrc/microhttpd/mhd_send.c | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c @@ -265,7 +265,11 @@ connection_set_cork_state_ (struct MHD_Connection *connection, MHD_DLOG (connection->daemon, _ ("Setting %s option to %s state failed " "for TCP/IP socket %d: %s\n"), - "TCP_NODELAY", +#ifdef TCP_CORK + "TCP_CORK", +#else /* ! TCP_CORK */ + "TCP_NOPUSH", +#endif /* ! TCP_CORK */ nodelay_state ? _ ("ON") : _ ("OFF"), (int) connection->socket_fd, MHD_socket_strerr_ (err_code)); @@ -277,7 +281,11 @@ connection_set_cork_state_ (struct MHD_Connection *connection, { MHD_DLOG (connection->daemon, _ ("Setting %s option to %s state failed: %s\n"), - "TCP_NODELAY", +#ifdef TCP_CORK + "TCP_CORK", +#else /* ! TCP_CORK */ + "TCP_NOPUSH", +#endif /* ! TCP_CORK */ nodelay_state ? _ ("ON") : _ ("OFF"), MHD_socket_strerr_ (err_code)); }