aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-04-17 16:45:29 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-04-17 16:45:44 +0300
commitabb47a11eced8d66dcf13183c264b8119db8923c (patch)
tree3f8243b4aaa51820e2daa96b07533f1db3089cfb /src
parent99f2df6dea40624ff82b00ebe362e587f722985f (diff)
downloadlibmicrohttpd-abb47a11eced8d66dcf13183c264b8119db8923c.tar.gz
libmicrohttpd-abb47a11eced8d66dcf13183c264b8119db8923c.zip
mhd_send: fixed log messaged broken by 99f2df6dea40624ff82b00ebe362e587f722985f
Diffstat (limited to 'src')
-rw-r--r--src/microhttpd/mhd_send.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 793df8d0..62f94e59 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -265,7 +265,11 @@ connection_set_cork_state_ (struct MHD_Connection *connection,
265 MHD_DLOG (connection->daemon, 265 MHD_DLOG (connection->daemon,
266 _ ("Setting %s option to %s state failed " 266 _ ("Setting %s option to %s state failed "
267 "for TCP/IP socket %d: %s\n"), 267 "for TCP/IP socket %d: %s\n"),
268 "TCP_NODELAY", 268#ifdef TCP_CORK
269 "TCP_CORK",
270#else /* ! TCP_CORK */
271 "TCP_NOPUSH",
272#endif /* ! TCP_CORK */
269 nodelay_state ? _ ("ON") : _ ("OFF"), 273 nodelay_state ? _ ("ON") : _ ("OFF"),
270 (int) connection->socket_fd, 274 (int) connection->socket_fd,
271 MHD_socket_strerr_ (err_code)); 275 MHD_socket_strerr_ (err_code));
@@ -277,7 +281,11 @@ connection_set_cork_state_ (struct MHD_Connection *connection,
277 { 281 {
278 MHD_DLOG (connection->daemon, 282 MHD_DLOG (connection->daemon,
279 _ ("Setting %s option to %s state failed: %s\n"), 283 _ ("Setting %s option to %s state failed: %s\n"),
280 "TCP_NODELAY", 284#ifdef TCP_CORK
285 "TCP_CORK",
286#else /* ! TCP_CORK */
287 "TCP_NOPUSH",
288#endif /* ! TCP_CORK */
281 nodelay_state ? _ ("ON") : _ ("OFF"), 289 nodelay_state ? _ ("ON") : _ ("OFF"),
282 MHD_socket_strerr_ (err_code)); 290 MHD_socket_strerr_ (err_code));
283 } 291 }