Skip to content

Commit

Permalink
Amend f1d8547
Browse files Browse the repository at this point in the history
Better handling of tls and early data buffer
  • Loading branch information
tatsuhiro-t committed Jul 14, 2020
1 parent 62411f5 commit d5550e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shrpx_rate_limit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d5550e9

Please sign in to comment.