commit de5c159df5d4395c6c67914c09552321b2012123
parent 7934cc0777f86151b630e54f182c04015b9f488d
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 20 Aug 2017 18:39:59 +0300
connection_https: reset tls_read_ready when no data is available
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/connection_https.c b/src/microhttpd/connection_https.c
@@ -64,6 +64,8 @@ recv_tls_adapter (struct MHD_Connection *connection,
if (GNUTLS_E_AGAIN == res)
connection->epoll_state &= ~MHD_EPOLL_STATE_READ_READY;
#endif
+ /* Any network errors means that buffer is empty. */
+ connection->tls_read_ready = false;
return MHD_ERR_AGAIN_;
}
if (res < 0)