nghttpx: Don't read frontend socket if read watcher is stopped
This commit is contained in:
parent
9ef8e24049
commit
1739b5a0e6
|
@ -127,6 +127,10 @@ int ClientHandler::read_clear() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!ev_is_active(&conn_.rev)) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
auto nread = conn_.read_clear(rb_.last, rb_.wleft());
|
auto nread = conn_.read_clear(rb_.last, rb_.wleft());
|
||||||
|
|
||||||
if (nread == 0) {
|
if (nread == 0) {
|
||||||
|
@ -220,6 +224,10 @@ int ClientHandler::read_tls() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!ev_is_active(&conn_.rev)) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
auto nread = conn_.read_tls(rb_.last, rb_.wleft());
|
auto nread = conn_.read_tls(rb_.last, rb_.wleft());
|
||||||
|
|
||||||
if (nread == 0) {
|
if (nread == 0) {
|
||||||
|
|
Loading…
Reference in New Issue