From: Jacob Champion Date: Mon, 29 Aug 2016 23:56:20 +0000 (+0000) Subject: mpm_winnt: remove duplication of ap_process_connection X-Git-Tag: 2.5.0-alpha~1178 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80aa724ee0de46c02a900df7f5de1c2dc39224f4;p=thirdparty%2Fapache%2Fhttpd.git mpm_winnt: remove duplication of ap_process_connection Further follow-up to the previous commit: now that we no longer patch a network bucket into the brigade, we can revert to calling ap_process_connection() directly instead of duplicating its logic. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1758309 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/child.c b/server/mpm/winnt/child.c index 5e771fd70a8..63aa81f931b 100644 --- a/server/mpm/winnt/child.c +++ b/server/mpm/winnt/child.c @@ -764,7 +764,6 @@ static DWORD __stdcall worker_main(void *thread_num_val) winnt_conn_ctx_t *context = NULL; int thread_num = (int)thread_num_val; ap_sb_handle_t *sbh; - int rc; conn_rec *c; apr_int32_t disconnected; @@ -805,19 +804,7 @@ static DWORD __stdcall worker_main(void *thread_num_val) apr_os_thread_put(&thd, &osthd, context->ptrans); c->current_thread = thd; - /* follow ap_process_connection(c, context->sock) logic - * as it left us no chance to reinject our first data bucket. - */ - ap_update_vhost_given_ip(c); - - rc = ap_run_pre_connection(c, context->sock); - if (rc != OK && rc != DONE) { - c->aborted = 1; - } - - if (!c->aborted) { - ap_run_process_connection(c); - } + ap_process_connection(c, context->sock); apr_socket_opt_get(context->sock, APR_SO_DISCONNECTED, &disconnected);