diff options
author | Jim Jagielski <jim@apache.org> | 2013-11-12 19:35:03 +0000 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2013-11-12 19:35:03 +0000 |
commit | 8316c1d842f2e443145547fb7b3250efaed52a44 (patch) | |
tree | 98df1370b1dd6316109fdd9b95469422228628f2 /server | |
parent | 9b54710ca7ef42299145e4528e87b48f69dd8ca7 (diff) | |
download | httpd-8316c1d842f2e443145547fb7b3250efaed52a44.tar.gz |
Merge r1538490 from trunk:
c->sbh can be unexpectedly NULL when the thread that pulls the ready keepalive
connection out of the queue laps the thread that put it on the queue.
Submitted by: covener
Reviewed/backported by: jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1541207 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r-- | server/mpm/event/event.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/mpm/event/event.c b/server/mpm/event/event.c index f12468f51a..1f89c5e335 100644 --- a/server/mpm/event/event.c +++ b/server/mpm/event/event.c @@ -1038,6 +1038,7 @@ read_request: */ cs->expiration_time = ap_server_conf->keep_alive_timeout + apr_time_now(); + c->sbh = NULL; apr_thread_mutex_lock(timeout_mutex); TO_QUEUE_APPEND(keepalive_q, cs); @@ -1051,6 +1052,7 @@ read_request: "process_socket: apr_pollset_add failure"); AP_DEBUG_ASSERT(rc == APR_SUCCESS); } + return; } else if (cs->pub.state == CONN_STATE_SUSPENDED) { apr_atomic_inc32(&suspended_count); |