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:
parent
7ae6e6b4c5
commit
3576f20e5a
|
@ -81,9 +81,11 @@ void readcb(struct ev_loop *loop, ev_io *w, int revents) {
|
||||||
delete handler;
|
delete handler;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (handler->do_write() != 0) {
|
if (ev_is_active(handler->get_wev())) {
|
||||||
delete handler;
|
if (handler->do_write() != 0) {
|
||||||
return;
|
delete handler;
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
Loading…
Reference in New Issue