aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-03-23 15:37:34 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-03-23 15:38:29 +0300
commitefa08edf9737c43b1b1b1d5633b509c5ed43f546 (patch)
tree73e20364f7a2ea9736d98cd3cc9860a6efb65a86
parent931a023922326be30ef54c9da36a3d5abbb15320 (diff)
downloadlibmicrohttpd-efa08edf9737c43b1b1b1d5633b509c5ed43f546.tar.gz
libmicrohttpd-efa08edf9737c43b1b1b1d5633b509c5ed43f546.zip
Do not fail on full read buffer if connection was resumed too quick after suspend
-rw-r--r--src/microhttpd/connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 5271991f..61023295 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1418,7 +1418,8 @@ MHD_connection_update_event_loop_info (struct MHD_Connection *connection)
1418 if ((MHD_YES != try_grow_read_buffer (connection)) && 1418 if ((MHD_YES != try_grow_read_buffer (connection)) &&
1419 (0 != (connection->daemon->options & 1419 (0 != (connection->daemon->options &
1420 MHD_USE_INTERNAL_POLLING_THREAD)) && 1420 MHD_USE_INTERNAL_POLLING_THREAD)) &&
1421 (! connection->suspended)) 1421 (! connection->suspended) &&
1422 (! connection->resuming))
1422 { 1423 {
1423 /* failed to grow the read buffer, and the 1424 /* failed to grow the read buffer, and the
1424 client which is supposed to handle the 1425 client which is supposed to handle the