diff options
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r-- | src/daemon/connection.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index e94b1d46..3fd03a41 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -330,6 +330,9 @@ try_ready_normal_body (struct MHD_Connection *connection) | |||
330 | MHD_MIN (response->data_buffer_size, | 330 | MHD_MIN (response->data_buffer_size, |
331 | response->total_size - | 331 | response->total_size - |
332 | connection->response_write_position)); | 332 | connection->response_write_position)); |
333 | if ( (ret == 0) && | ||
334 | (0 != (connection->daemon->options & MHD_USE_SELECT_INTERNALLY)) ) | ||
335 | abort(); /* serious client API violation */ | ||
333 | if (ret == -1) | 336 | if (ret == -1) |
334 | { | 337 | { |
335 | /* either error or http 1.0 transfer, close | 338 | /* either error or http 1.0 transfer, close |
@@ -1715,6 +1718,12 @@ MHD_connection_handle_write (struct MHD_Connection *connection) | |||
1715 | if (connection->socket_fd != -1) | 1718 | if (connection->socket_fd != -1) |
1716 | connection_close_error (connection); | 1719 | connection_close_error (connection); |
1717 | return MHD_NO; | 1720 | return MHD_NO; |
1721 | case MHD_TLS_CONNECTION_INIT: | ||
1722 | case MHD_TLS_HELLO_REQUEST: | ||
1723 | case MHD_TLS_HANDSHAKE_FAILED: | ||
1724 | case MHD_TLS_HANDSHAKE_COMPLETE: | ||
1725 | EXTRA_CHECK(0); | ||
1726 | break; | ||
1718 | } | 1727 | } |
1719 | break; | 1728 | break; |
1720 | } | 1729 | } |