mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
test
This commit is contained in:
@@ -474,24 +474,24 @@ MHD_socket_buffering_reset_ (MHD_socket sock)
|
||||
#if defined(TCP_NODELAY) || defined(MHD_TCP_CORK_NOPUSH)
|
||||
const MHD_SCKT_OPT_BOOL_ off_val = 0;
|
||||
#if defined(MHD_TCP_CORK_NOPUSH)
|
||||
#if OLD_SOCKOPT
|
||||
//#if OLD_SOCKOPT
|
||||
/* Disable extra buffering */
|
||||
res = (0 == setsockopt (sock,
|
||||
IPPROTO_TCP,
|
||||
MHD_TCP_CORK_NOPUSH,
|
||||
(const void *) &off_val,
|
||||
sizeof (off_val))) && res;
|
||||
#endif
|
||||
//#endif
|
||||
#endif /* MHD_TCP_CORK_NOPUSH */
|
||||
#if defined(TCP_NODELAY)
|
||||
#if OLD_SOCKOPT
|
||||
//#if OLD_SOCKOPT
|
||||
/* Enable Nagle's algorithm for normal buffering */
|
||||
res = (0 == setsockopt (sock,
|
||||
IPPROTO_TCP,
|
||||
TCP_NODELAY,
|
||||
(const void *) &off_val,
|
||||
sizeof (off_val))) && res;
|
||||
#endif
|
||||
//#endif
|
||||
#endif /* TCP_NODELAY */
|
||||
#else /* !TCP_NODELAY && !MHD_TCP_CORK_NOPUSH */
|
||||
(void) sock;
|
||||
|
||||
Reference in New Issue
Block a user