Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 713D29C02 for ; Wed, 6 Jun 2012 07:27:02 +0000 (UTC) Received: (qmail 35550 invoked by uid 500); 6 Jun 2012 07:27:02 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 35127 invoked by uid 500); 6 Jun 2012 07:26:55 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 35063 invoked by uid 99); 6 Jun 2012 07:26:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2012 07:26:52 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sorinm@gmail.com designates 209.85.215.173 as permitted sender) Received: from [209.85.215.173] (HELO mail-ey0-f173.google.com) (209.85.215.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2012 07:26:45 +0000 Received: by eaak12 with SMTP id k12so2917784eaa.18 for ; Wed, 06 Jun 2012 00:26:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=gOkqlVkykewFKDVKipNh3BjVOiHSzFQ+1MGGnwk1ppU=; b=BC3hKaQ+SdTz0sxrKBqVxIyFO0wRLKbmTqqBjxQhPm0EWcRN4FWZ329WqM9Rhtr6Rt 9tTqRROmAQcdVcxo8nSiPee++ngVozdarHv+1AK1/4H7YF4coT0bi3mi9RJkpXlXYGRb +hLLoPlkYE3QBXaSCpJcI/46IqvIuYH3J+2YZrhSjpvUD6KuZsbqJPg6HJiG878ViAl7 ooHid2/qKa0eovZueavY2S4g/JjgVMPRWNEM217s3vB+LToVVBZqm0pVRCao4YKlA/7X elXsh3C5nKi6okb3NWItqUJsnpGEjeK4ETfQBMEmYgewyVq01Qu45pfU7dH0a6PDkAr4 a0tg== Received: by 10.14.189.10 with SMTP id b10mr10035298een.9.1338967584705; Wed, 06 Jun 2012 00:26:24 -0700 (PDT) Received: from ?IPv6:2a01:c9c0:a1:15:213:72ff:fe38:2e23? ([2a01:c9c0:a1:15:213:72ff:fe38:2e23]) by mx.google.com with ESMTPS id m5sm3048582eeh.17.2012.06.06.00.26.22 (version=SSLv3 cipher=OTHER); Wed, 06 Jun 2012 00:26:23 -0700 (PDT) Message-ID: <4FCF0618.9040700@gmail.com> Date: Wed, 06 Jun 2012 09:26:16 +0200 From: Sorin Manolache User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 To: modules-dev@httpd.apache.org Subject: Re: Protocol converter module References: <4FCDB577.2080706@gmail.com> <4FCDD5F8.70305@gmail.com> <4FCE2B7A.1050703@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-06-05 20:39, Robert Mitschke wrote: > > The Alternative would be to have all blocking on the Same pipe. For each > connection Handler I want to wake up I make a Note in shared mem then write > a Single Byte to the pipe causing all blocking threads to wake up. These > will Check in the shared mem whether they are meant and only if they are > will read a Byte from the pipe. I was thinking about the second approach too. But its problem is that when you write something to the pipe, the operating system chooses randomly _one_ process to wake up. Not all of them will wake up. And that's the problem. Sorin