diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-08-20 18:39:59 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-08-27 21:53:37 +0300 |
commit | de5c159df5d4395c6c67914c09552321b2012123 (patch) | |
tree | a6d838a23a38263c4834b58c5aec7c0f6c31ec83 /src/microhttpd/connection_https.c | |
parent | 7934cc0777f86151b630e54f182c04015b9f488d (diff) | |
download | libmicrohttpd-de5c159df5d4395c6c67914c09552321b2012123.tar.gz libmicrohttpd-de5c159df5d4395c6c67914c09552321b2012123.zip |
connection_https: reset tls_read_ready when no data is available
Diffstat (limited to 'src/microhttpd/connection_https.c')
-rw-r--r-- | src/microhttpd/connection_https.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/microhttpd/connection_https.c b/src/microhttpd/connection_https.c index 19d6db59..73589b2c 100644 --- a/src/microhttpd/connection_https.c +++ b/src/microhttpd/connection_https.c | |||
@@ -64,6 +64,8 @@ recv_tls_adapter (struct MHD_Connection *connection, | |||
64 | if (GNUTLS_E_AGAIN == res) | 64 | if (GNUTLS_E_AGAIN == res) |
65 | connection->epoll_state &= ~MHD_EPOLL_STATE_READ_READY; | 65 | connection->epoll_state &= ~MHD_EPOLL_STATE_READ_READY; |
66 | #endif | 66 | #endif |
67 | /* Any network errors means that buffer is empty. */ | ||
68 | connection->tls_read_ready = false; | ||
67 | return MHD_ERR_AGAIN_; | 69 | return MHD_ERR_AGAIN_; |
68 | } | 70 | } |
69 | if (res < 0) | 71 | if (res < 0) |