aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-07-26 21:09:54 +0000
committerng0 <ng0@n0.is>2019-07-26 21:09:54 +0000
commit7a9f4c60e7e807bcf2701f3c7b99cb8a5ec9ca96 (patch)
tree3abf58da7b675186472d4bcd81f1394610af4c35
parent2c1b1f146c4e54b3c6686742c5dd0b136e4c4fe8 (diff)
downloadlibmicrohttpd-7a9f4c60e7e807bcf2701f3c7b99cb8a5ec9ca96.tar.gz
libmicrohttpd-7a9f4c60e7e807bcf2701f3c7b99cb8a5ec9ca96.zip
test
-rw-r--r--src/microhttpd/mhd_sockets.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/mhd_sockets.c b/src/microhttpd/mhd_sockets.c
index bc924651..0bfe2517 100644
--- a/src/microhttpd/mhd_sockets.c
+++ b/src/microhttpd/mhd_sockets.c
@@ -474,24 +474,24 @@ MHD_socket_buffering_reset_ (MHD_socket sock)
474#if defined(TCP_NODELAY) || defined(MHD_TCP_CORK_NOPUSH) 474#if defined(TCP_NODELAY) || defined(MHD_TCP_CORK_NOPUSH)
475 const MHD_SCKT_OPT_BOOL_ off_val = 0; 475 const MHD_SCKT_OPT_BOOL_ off_val = 0;
476#if defined(MHD_TCP_CORK_NOPUSH) 476#if defined(MHD_TCP_CORK_NOPUSH)
477#if OLD_SOCKOPT 477 //#if OLD_SOCKOPT
478 /* Disable extra buffering */ 478 /* Disable extra buffering */
479 res = (0 == setsockopt (sock, 479 res = (0 == setsockopt (sock,
480 IPPROTO_TCP, 480 IPPROTO_TCP,
481 MHD_TCP_CORK_NOPUSH, 481 MHD_TCP_CORK_NOPUSH,
482 (const void *) &off_val, 482 (const void *) &off_val,
483 sizeof (off_val))) && res; 483 sizeof (off_val))) && res;
484#endif 484 //#endif
485#endif /* MHD_TCP_CORK_NOPUSH */ 485#endif /* MHD_TCP_CORK_NOPUSH */
486#if defined(TCP_NODELAY) 486#if defined(TCP_NODELAY)
487#if OLD_SOCKOPT 487 //#if OLD_SOCKOPT
488 /* Enable Nagle's algorithm for normal buffering */ 488 /* Enable Nagle's algorithm for normal buffering */
489 res = (0 == setsockopt (sock, 489 res = (0 == setsockopt (sock,
490 IPPROTO_TCP, 490 IPPROTO_TCP,
491 TCP_NODELAY, 491 TCP_NODELAY,
492 (const void *) &off_val, 492 (const void *) &off_val,
493 sizeof (off_val))) && res; 493 sizeof (off_val))) && res;
494#endif 494 //#endif
495#endif /* TCP_NODELAY */ 495#endif /* TCP_NODELAY */
496#else /* !TCP_NODELAY && !MHD_TCP_CORK_NOPUSH */ 496#else /* !TCP_NODELAY && !MHD_TCP_CORK_NOPUSH */
497 (void) sock; 497 (void) sock;