diff options
author | ng0 <ng0@n0.is> | 2019-08-18 15:20:30 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-08-18 15:20:30 +0000 |
commit | e82de7505f3be8fcee6bd1fc8990893b0a423a40 (patch) | |
tree | 6eccae5a9e2d328a2433f18a7e783f6927ad20ff | |
parent | 3242129e19b6e463d28b0e464cad9891a2cffe1e (diff) | |
download | libmicrohttpd-e82de7505f3be8fcee6bd1fc8990893b0a423a40.tar.gz libmicrohttpd-e82de7505f3be8fcee6bd1fc8990893b0a423a40.zip |
Revert "connection.c: remove dead code."dev/ng0/gsoc2019
This reverts commit 39ddaf988f41c50b3a36d6683b4ca3c7e298041d.
Without this test_upgrade hangs on select(6) in FreeBSD.
-rw-r--r-- | src/microhttpd/connection.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index b8e2462b..ab760e4a 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -3560,9 +3560,9 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
3560 | /* no default action */ | 3560 | /* no default action */ |
3561 | break; | 3561 | break; |
3562 | case MHD_CONNECTION_HEADERS_SENT: | 3562 | case MHD_CONNECTION_HEADERS_SENT: |
3563 | /* Some clients may take some actions right after header receive. | 3563 | /* Some clients may take some actions right after header receive */ |
3564 | This is now handled by code in and around mhd_send.c. */ | 3564 | if (socket_flush_possible (connection)) |
3565 | break; | 3565 | socket_start_no_buffering_flush (connection); /* REMOVE: Dead */ |
3566 | 3566 | ||
3567 | #ifdef UPGRADE_SUPPORT | 3567 | #ifdef UPGRADE_SUPPORT |
3568 | if (NULL != connection->response->upgrade_handler) | 3568 | if (NULL != connection->response->upgrade_handler) |