libmicrohttpd

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

commit abc998d21921c5f183bea6818c25b1d3b7df09bb
parent 1bcbd2c008389dec0a58ed6fdbfeb10404cf58af
Author: ng0 <ng0@n0.is>
Date:   Mon, 29 Jul 2019 17:20:40 +0000

check before post_ function if we need to set want_cork to false

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

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c @@ -340,6 +340,9 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, ret = writev (s, vector, iovcnt); #endif + if (ret == header_len + buffer_len) + want_cork = false; + post_cork_setsockopt (connection, want_cork); return ret;