Fix regression in ff64f64e1d

This commit is contained in:
Tatsuhiro Tsujikawa 2016-12-21 23:05:29 +09:00
parent e9cb19c80e
commit 359730af54
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}