aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 8c61a8ba..593a5b44 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -495,13 +495,14 @@ static int
495socket_start_extra_buffering (struct MHD_Connection *connection) 495socket_start_extra_buffering (struct MHD_Connection *connection)
496{ 496{
497 int res = MHD_NO; 497 int res = MHD_NO;
498 (void)connection; /* Mute compiler warning. */
499#if defined(TCP_CORK) || defined(TCP_NOPUSH) 498#if defined(TCP_CORK) || defined(TCP_NOPUSH)
500 const MHD_SCKT_OPT_BOOL_ on_val = 1; 499 const MHD_SCKT_OPT_BOOL_ on_val = 1;
501#if defined(TCP_NODELAY) 500#if defined(TCP_NODELAY)
502 const MHD_SCKT_OPT_BOOL_ off_val = 0; 501 const MHD_SCKT_OPT_BOOL_ off_val = 0;
503#endif /* TCP_NODELAY */ 502#endif /* TCP_NODELAY */
504 mhd_assert(NULL != connection); 503 (void) connection; /* mute compiler warning, assertion below
504 may be compiled out! */
505 mhd_assert(NULL != connection);
505#if defined(TCP_NOPUSH) && !defined(TCP_CORK) 506#if defined(TCP_NOPUSH) && !defined(TCP_CORK)
506 /* Buffer data before sending */ 507 /* Buffer data before sending */
507 res = (0 == setsockopt (connection->socket_fd, 508 res = (0 == setsockopt (connection->socket_fd,