Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 22782 invoked by uid 6000); 29 Jun 1999 18:47:10 -0000 Received: (qmail 22775 invoked from network); 29 Jun 1999 18:47:09 -0000 Received: from fwns1d.raleigh.ibm.com (HELO fwns1.raleigh.ibm.com) (204.146.167.235) by taz.hyperreal.org with SMTP; 29 Jun 1999 18:47:09 -0000 Received: from rtpmail03.raleigh.ibm.com (rtpmail03.raleigh.ibm.com [9.37.172.47]) by fwns1.raleigh.ibm.com (8.9.0/8.9.0/RTP-FW-1.2) with ESMTP id OAA29770 for ; Tue, 29 Jun 1999 14:47:05 -0400 Received: from dosa.raleigh.ibm.com (dosa.raleigh.ibm.com [9.37.54.227]) by rtpmail03.raleigh.ibm.com (8.8.5/8.8.5/RTP-ral-1.1) with ESMTP id OAA21104 for ; Tue, 29 Jun 1999 14:47:08 -0400 Received: by dosa.raleigh.ibm.com (Postfix, from userid 0) id D82AC25B42; Tue, 29 Jun 1999 14:47:06 -0400 (EDT) Date: Tue, 29 Jun 1999 14:47:06 -0400 From: Manoj Kasichainula To: Apache Developers Subject: Getting rid of http_accept abstraction Message-ID: <19990629144706.A17174@dosa.raleigh.ibm.com> Mail-Followup-To: Apache Developers Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.3i Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Is there anybody with an objection to getting rid of the http_accept abstraction? In the MPM code it doesn't really accomplish much, and getting rid of it will make it much easier to solve a potential thread-safeness problem with poll: >From the STATUS file: If SINGLE_LISTEN_UNSERIALIZED_ACCEPT is active, multiple threads are allowed to call poll() at the same time, with the same pollfd array. The only solution Manoj can think of right now is to have one pollfd array per thread, or to just always require serialization (bleh on both counts). The only way I can see to fix this efficiently is to let each thread have its own pollfd array. This breaks the accept abstraction (unless we go through gymnastics that just aren't worth the effort now that the MPM abstraction seems to have taken hold). -- Manoj Kasichainula - manojk@raleigh.ibm.com IBM, Apache Development