nghttpx: Revert part of 6f58434d89

The reverted part of the change may use not connected socket in HTTP/1
backend.
This commit is contained in:
Tatsuhiro Tsujikawa 2015-03-29 01:32:27 +09:00
parent 7ae6e6b4c5
commit 3576f20e5a
1 changed files with 5 additions and 3 deletions

View File

@ -81,11 +81,13 @@ void readcb(struct ev_loop *loop, ev_io *w, int revents) {
delete handler; delete handler;
return; return;
} }
if (ev_is_active(handler->get_wev())) {
if (handler->do_write() != 0) { if (handler->do_write() != 0) {
delete handler; delete handler;
return; return;
} }
} }
}
} // namespace } // namespace
namespace { namespace {