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 AD85C65EA for ; Thu, 16 Jun 2011 11:44:30 +0000 (UTC) Received: (qmail 74920 invoked by uid 500); 16 Jun 2011 11:44:30 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 74893 invoked by uid 500); 16 Jun 2011 11:44:30 -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 74885 invoked by uid 99); 16 Jun 2011 11:44:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 11:44:30 +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 info@bnoordhuis.nl designates 209.85.218.45 as permitted sender) Received: from [209.85.218.45] (HELO mail-yi0-f45.google.com) (209.85.218.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 11:44:22 +0000 Received: by yia25 with SMTP id 25so1096490yia.18 for ; Thu, 16 Jun 2011 04:44:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.209.200 with SMTP id s48mr1172933yho.352.1308224641736; Thu, 16 Jun 2011 04:44:01 -0700 (PDT) Received: by 10.236.209.161 with HTTP; Thu, 16 Jun 2011 04:44:01 -0700 (PDT) X-Originating-IP: [87.214.96.125] In-Reply-To: <1308213170.17763.14.camel@lnxhenrikst.se.axis.com> References: <1308213170.17763.14.camel@lnxhenrikst.se.axis.com> Date: Thu, 16 Jun 2011 13:44:01 +0200 Message-ID: Subject: Re: Socket transfer from Apache httpd to a non-httpd process From: Ben Noordhuis To: modules-dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Jun 16, 2011 at 10:32, Henrik Strand wrote: > I've tried writing data to the socket directly after my non-httpd daemon > process receives the socket descriptor and this results in that the > client receives this data. However, very shortly afterwards the > connections is closed and I'm not able to write to the socket anymore. You probably want to dup() the socket fd before passing it to the external process.