libmicrohttpd

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

commit e82de7505f3be8fcee6bd1fc8990893b0a423a40
parent 3242129e19b6e463d28b0e464cad9891a2cffe1e
Author: ng0 <ng0@n0.is>
Date:   Sun, 18 Aug 2019 15:20:30 +0000

Revert "connection.c: remove dead code."

This reverts commit 39ddaf988f41c50b3a36d6683b4ca3c7e298041d.

Without this test_upgrade hangs on select(6) in FreeBSD.

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

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -3560,9 +3560,9 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) /* no default action */ break; case MHD_CONNECTION_HEADERS_SENT: - /* Some clients may take some actions right after header receive. - This is now handled by code in and around mhd_send.c. */ - break; + /* Some clients may take some actions right after header receive */ + if (socket_flush_possible (connection)) + socket_start_no_buffering_flush (connection); /* REMOVE: Dead */ #ifdef UPGRADE_SUPPORT if (NULL != connection->response->upgrade_handler)