From: Manoj Kasichainula Date: Wed, 27 Oct 1999 06:11:21 +0000 (+0000) Subject: Only process a connection if we've actually accepted one. X-Git-Tag: 1.3.10~220 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ab1a9c92cf4d7690fced269e608f07fe482eb52;p=apache Only process a connection if we've actually accepted one. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84041 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/dexter/dexter.c b/server/mpm/dexter/dexter.c index 7a1be0d4d9..402fe476e2 100644 --- a/server/mpm/dexter/dexter.c +++ b/server/mpm/dexter/dexter.c @@ -936,6 +936,8 @@ static void *worker_thread(void *arg) } } pthread_mutex_unlock(&idle_thread_count_mutex); + process_socket(ptrans, csd, conn_id); + requests_this_child--; } else { SAFE_ACCEPT(accept_mutex_off(0)); SAFE_ACCEPT(intra_mutex_off(0)); @@ -944,9 +946,7 @@ static void *worker_thread(void *arg) pthread_mutex_unlock(&idle_thread_count_mutex); break; } - process_socket(ptrans, csd, conn_id); ap_clear_pool(ptrans); - requests_this_child--; } ap_destroy_pool(tpool); diff --git a/server/mpm/mpmt_pthread/mpmt_pthread.c b/server/mpm/mpmt_pthread/mpmt_pthread.c index cfc60fe3fb..dddb9ca854 100644 --- a/server/mpm/mpmt_pthread/mpmt_pthread.c +++ b/server/mpm/mpmt_pthread/mpmt_pthread.c @@ -879,15 +879,15 @@ static void * worker_thread(void * dummy) ap_accept(&csd, sd, ptrans); SAFE_ACCEPT(accept_mutex_off(0)); SAFE_ACCEPT(intra_mutex_off(0)); + process_socket(ptrans, csd, process_slot, thread_slot); + requests_this_child--; } else { SAFE_ACCEPT(accept_mutex_off(0)); SAFE_ACCEPT(intra_mutex_off(0)); break; } - process_socket(ptrans, csd, process_slot, thread_slot); ap_clear_pool(ptrans); - requests_this_child--; } ap_destroy_pool(tpool);