Fixed received of large data over HTTPS in epoll.

This commit is contained in:
Evgeny Grin (Karlson2k)
2017-11-03 14:50:42 +03:00
parent 2ddfa02985
commit 5fa4f4e2f0
+3 -3
View File
@@ -77,9 +77,9 @@ recv_tls_adapter (struct MHD_Connection *connection,
}
#ifdef EPOLL_SUPPORT
/* If data not available to fill whole buffer - socket is not read ready anymore. */
if (i > (size_t)res)
connection->epoll_state &= ~MHD_EPOLL_STATE_READ_READY;
/* Unlike non-TLS connections, do not reset "read-ready" if
* received amount smaller than provided amount, as TLS
* connections may receive data by fixed-size chunks. */
#endif /* EPOLL_SUPPORT */
/* Check whether TLS buffers still have some unread data. */