libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INT


From: Vitaliy T
Subject: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INTERNAL_ERROR for suspended connections
Date: Wed, 15 Mar 2017 15:13:09 +0300

The patch is below.

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index f192a1bb..bc1e2abc 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1406,7 +1406,8 @@ MHD_connection_update_event_loop_info (struct
MHD_Connection *connection)
           connection->event_loop_info = MHD_EVENT_LOOP_INFO_WRITE;
           break;
         case MHD_CONNECTION_CONTINUE_SENT:
-          if (connection->read_buffer_offset == connection->read_buffer_size)
+          if (! connection->suspended &&
+              (connection->read_buffer_offset == connection->read_buffer_size))
             {
               if ((MHD_YES != try_grow_read_buffer (connection)) &&
                   (0 != (connection->daemon->options &

Thanks.

-- 
With Best Regards,
Vitaliy V. Tokarev



reply via email to

[Prev in Thread] Current Thread [Next in Thread]