libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit efa08edf9737c43b1b1b1d5633b509c5ed43f546
parent 931a023922326be30ef54c9da36a3d5abbb15320
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 23 Mar 2017 15:37:34 +0300

Do not fail on full read buffer if connection was resumed too quick after suspend

Diffstat:
Msrc/microhttpd/connection.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -1418,7 +1418,8 @@ MHD_connection_update_event_loop_info (struct MHD_Connection *connection) if ((MHD_YES != try_grow_read_buffer (connection)) && (0 != (connection->daemon->options & MHD_USE_INTERNAL_POLLING_THREAD)) && - (! connection->suspended)) + (! connection->suspended) && + (! connection->resuming)) { /* failed to grow the read buffer, and the client which is supposed to handle the