Commit d5550e94 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Amend f1d8547b

Better handling of tls and early data buffer
parent 62411f5a
......@@ -109,9 +109,9 @@ void RateLimit::stopw() {
void RateLimit::handle_tls_pending_read() {
if (!conn_ || !conn_->tls.ssl ||
(conn_->tls.rbuf.rleft() == 0 && !conn_->tls.initial_handshake_done) ||
(SSL_pending(conn_->tls.ssl) == 0 && conn_->tls.rbuf.rleft() == 0 &&
conn_->tls.earlybuf.rleft() == 0)) {
(!conn_->tls.initial_handshake_done ||
conn_->tls.earlybuf.rleft() == 0))) {
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment