Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CAFEA916C for ; Mon, 27 Feb 2012 21:45:42 +0000 (UTC) Received: (qmail 16039 invoked by uid 500); 27 Feb 2012 21:45:42 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 15987 invoked by uid 500); 27 Feb 2012 21:45:42 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 15979 invoked by uid 99); 27 Feb 2012 21:45:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2012 21:45:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2012 21:45:40 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 9F78523888E7; Mon, 27 Feb 2012 21:45:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1294349 - /httpd/httpd/trunk/server/mpm/event/event.c Date: Mon, 27 Feb 2012 21:45:19 -0000 To: cvs@httpd.apache.org From: sf@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120227214519.9F78523888E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sf Date: Mon Feb 27 21:45:18 2012 New Revision: 1294349 URL: http://svn.apache.org/viewvc?rev=1294349&view=rev Log: Prevent listener thread from ever updating a worker's scoreboard slot The worker may be doing something else by now. This should take care of slots staying in "L" state in the scoreboard Modified: httpd/httpd/trunk/server/mpm/event/event.c Modified: httpd/httpd/trunk/server/mpm/event/event.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/event/event.c?rev=1294349&r1=1294348&r2=1294349&view=diff ============================================================================== --- httpd/httpd/trunk/server/mpm/event/event.c (original) +++ httpd/httpd/trunk/server/mpm/event/event.c Mon Feb 27 21:45:18 2012 @@ -767,10 +767,6 @@ static int start_lingering_close(event_c { apr_status_t rv; - cs->c->sbh = NULL; /* prevent scoreboard updates from the listener - * worker will loop around and set SERVER_READY soon - */ - if (ap_start_lingering_close(cs->c)) { apr_pool_clear(cs->p); ap_push_pool(worker_queue_info, cs->p); @@ -861,6 +857,7 @@ static int process_socket(apr_thread_t * int rc; ap_sb_handle_t *sbh; + /* XXX: This will cause unbounded mem usage for long lasting connections */ ap_create_sb_handle(&sbh, p, my_child_num, my_thread_num); if (cs == NULL) { /* This is a new connection */ @@ -1016,6 +1013,13 @@ read_request: AP_DEBUG_ASSERT(rc == APR_SUCCESS); } } + /* + * Prevent this connection from writing to our connection state after it + * is no longer associated with this thread. This would happen if the EOR + * bucket is destroyed from the listener thread due to a connection abort + * or timeout. + */ + c->sbh = NULL; return 1; }