Commit 3576f20e authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Revert part of 6f58434d

The reverted part of the change may use not connected socket in HTTP/1
backend.
parent 7ae6e6b4
......@@ -81,9 +81,11 @@ void readcb(struct ev_loop *loop, ev_io *w, int revents) {
delete handler;
return;
}
if (handler->do_write() != 0) {
delete handler;
return;
if (ev_is_active(handler->get_wev())) {
if (handler->do_write() != 0) {
delete handler;
return;
}
}
}
} // namespace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment