libmicrohttpd

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

commit 9e8418b943c417b50b0e7ecac868cde3933aba5e
parent afe3f5aef4ec0b48b2c7e05f77dba8f8fbfe4243
Author: ng0 <ng0@n0.is>
Date:   Fri, 26 Jul 2019 22:18:09 +0000

remove commented code

Diffstat:
Msrc/microhttpd/mhd_send.c | 49-------------------------------------------------
1 file changed, 0 insertions(+), 49 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c @@ -319,25 +319,7 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, struct iovec vector[2]; have_cork = ! connection->sk_cork_on; - /* -#if TCP_NODELAY - use_corknopush = false; -#elif TCP_CORK - use_corknopush = true; -#elif TCP_NOPUSH - use_corknopush = true; -#endif - */ - pre_cork_setsockopt (connection, want_cork); - /* -#if TCP_NODELAY - if ((! use_corknopush) && (! have_cork && want_cork)) - { - MHD_setsockopt_ (connection, TCP_NODELAY, false, false); - } -#endif - */ vector[0].iov_base = header; vector[0].iov_len = strlen (header); @@ -356,37 +338,6 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, post_cork_setsockopt (connection, want_cork); - /* -#if TCP_CORK - if (use_corknopush) - { - eno; - - eno = errno; - if ((ret == header_len + buffer_len) && have_cork) - { - // Response complete, definitely uncork! - MHD_setsockopt_ (connection, TCP_CORK, false, true); - } - errno = eno; - } - return ret; -#elif TCP_NOPUSH - if (use_corknopush) - { - eno; - - eno = errno; - if (ret == header_len + buffer_len) - { - // Response complete, set NOPUSH to off - MHD_setsockopt_ (connection, TCP_NOPUSH, false, false); - } - errno = eno; - } - return ret; -#endif - */ return ret; #else