From 359730af544086424c8b7eefdd36ead4d583461c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 21 Dec 2016 23:05:29 +0900 Subject: [PATCH] Fix regression in ff64f64e1dc362aca52e04a42a4258598a43f30f --- src/shrpx_client_handler.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shrpx_client_handler.cc b/src/shrpx_client_handler.cc index 66b88ffa..33b53c1b 100644 --- a/src/shrpx_client_handler.cc +++ b/src/shrpx_client_handler.cc @@ -1279,6 +1279,10 @@ ClientHandler::ReadBuf *ClientHandler::get_rb() { return &rb_; } void ClientHandler::signal_write() { conn_.wlimit.startw(); } void ClientHandler::signal_write_no_wait() { + // ev_feed_event works without starting watcher. But rate limiter + // requires active watcher. Without that, we might not send pending + // data. Also ClientHandler::write_tls requires it. + conn_.wlimit.startw(); ev_feed_event(conn_.loop, &conn_.wev, EV_WRITE); }