nghttpx: Don't read frontend socket if read watcher is stopped

This commit is contained in:
Tatsuhiro Tsujikawa 2016-01-27 15:26:06 +09:00
parent 9ef8e24049
commit 1739b5a0e6
1 changed files with 8 additions and 0 deletions

View File

@ -127,6 +127,10 @@ int ClientHandler::read_clear() {
return 0;
}
if (!ev_is_active(&conn_.rev)) {
return 0;
}
auto nread = conn_.read_clear(rb_.last, rb_.wleft());
if (nread == 0) {
@ -220,6 +224,10 @@ int ClientHandler::read_tls() {
return 0;
}
if (!ev_is_active(&conn_.rev)) {
return 0;
}
auto nread = conn_.read_tls(rb_.last, rb_.wleft());
if (nread == 0) {