diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index b2197310..21f5a651 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -2441,7 +2441,10 @@ check_write_done (struct MHD_Connection *connection, | |||
2441 | { | 2441 | { |
2442 | if ( (connection->write_buffer_append_offset != | 2442 | if ( (connection->write_buffer_append_offset != |
2443 | connection->write_buffer_send_offset) || | 2443 | connection->write_buffer_send_offset) || |
2444 | (connection->sk_cork_on) ) | 2444 | /* if we expected to turn cork off, and it is still on, |
2445 | we are not finished sending (can happen with gnutls_record_uncork) */ | ||
2446 | ( (connection->sk_cork_on) && | ||
2447 | (MHD_CONNECTION_HEADERS_SENDING != connection->state) ) ) | ||
2445 | return MHD_NO; | 2448 | return MHD_NO; |
2446 | connection->write_buffer_append_offset = 0; | 2449 | connection->write_buffer_append_offset = 0; |
2447 | connection->write_buffer_send_offset = 0; | 2450 | connection->write_buffer_send_offset = 0; |
@@ -2555,7 +2558,8 @@ process_broken_line (struct MHD_Connection *connection, | |||
2555 | adjacency); also, in the case where these are not adjacent | 2558 | adjacency); also, in the case where these are not adjacent |
2556 | (not sure how it can happen!), we would want to allocate from | 2559 | (not sure how it can happen!), we would want to allocate from |
2557 | the end of the pool, so as to not destroy the read-buffer's | 2560 | the end of the pool, so as to not destroy the read-buffer's |
2558 | ability to grow nicely. */last = MHD_pool_reallocate (connection->pool, | 2561 | ability to grow nicely. */// |
2562 | last = MHD_pool_reallocate (connection->pool, | ||
2559 | last, | 2563 | last, |
2560 | last_len + 1, | 2564 | last_len + 1, |
2561 | last_len + tmp_len + 1); | 2565 | last_len + tmp_len + 1); |