Ensure that conn_rec->sbh is always cleared when returning from process_socket().
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1545736 13f79535-47bb-0310-9956-
ffa450edef68
* event thread poll for writeability.
*/
cs->expiration_time = ap_server_conf->timeout + apr_time_now();
+ c->sbh = NULL;
apr_thread_mutex_lock(timeout_mutex);
TO_QUEUE_APPEND(write_completion_q, cs);
cs->pfd.reqevents = (
}
if (cs->pub.state == CONN_STATE_LINGER) {
- if (!start_lingering_close_blocking(cs))
+ if (!start_lingering_close_blocking(cs)) {
+ c->sbh = NULL;
return;
+ }
}
else if (cs->pub.state == CONN_STATE_CHECK_REQUEST_LINE_READABLE) {
/* It greatly simplifies the logic to use a single timeout value here
pollset_op_t *v = ap_equeue_writer_value(eq);
cs->expiration_time = ap_server_conf->timeout + apr_time_now();
+ c->sbh = NULL;
cs->pfd.reqevents = (
cs->pub.sense == CONN_SENSE_WANT_READ ? APR_POLLIN :
APR_POLLOUT) | APR_POLLHUP | APR_POLLERR;
if (cs->pub.state == CONN_STATE_LINGER) {
if (!start_lingering_close_blocking(cs, eq)) {
+ c->sbh = NULL;
return;
}
}