From d2a63a88a02e7d236b2cd031c0482d376ea2ed19 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 11 Aug 2015 22:37:15 +0900 Subject: [PATCH] nghttpx: Fix stall if read buffer has app data when handshake finished --- src/shrpx_connection.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shrpx_connection.cc b/src/shrpx_connection.cc index 7e226906..0f40959b 100644 --- a/src/shrpx_connection.cc +++ b/src/shrpx_connection.cc @@ -417,6 +417,10 @@ int Connection::tls_handshake() { tls.initial_handshake_done = true; + if (tls.rb->rleft()) { + ev_feed_event(loop, &rev, EV_READ); + } + if (LOG_ENABLED(INFO)) { LOG(INFO) << "SSL/TLS handshake completed"; if (SSL_session_reused(tls.ssl)) {