From 020e66b9dacb6884fa67eb8e7a2c442639e94e65 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 11 Aug 2015 23:14:48 +0900 Subject: [PATCH] nghttpx: Start read watcher after handshake --- src/shrpx_connection.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shrpx_connection.cc b/src/shrpx_connection.cc index 0f40959b..d9597901 100644 --- a/src/shrpx_connection.cc +++ b/src/shrpx_connection.cc @@ -421,6 +421,10 @@ int Connection::tls_handshake() { ev_feed_event(loop, &rev, EV_READ); } + // We may have stopped reading + rlimit.startw(); + ev_timer_again(loop, &rt); + if (LOG_ENABLED(INFO)) { LOG(INFO) << "SSL/TLS handshake completed"; if (SSL_session_reused(tls.ssl)) {