Revert "connection.c: remove dead code."

This reverts commit 39ddaf988f.

Without this test_upgrade hangs on select(6) in FreeBSD.
This commit is contained in:
ng0
2019-08-18 15:20:30 +00:00
parent 3242129e19
commit e82de7505f
+3 -3
View File
@@ -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)