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 73A2163DE for ; Thu, 16 Jun 2011 14:57:42 +0000 (UTC) Received: (qmail 58384 invoked by uid 500); 16 Jun 2011 14:57:42 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 58357 invoked by uid 500); 16 Jun 2011 14:57:42 -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 58349 invoked by uid 99); 16 Jun 2011 14:57:42 -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 14:57:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of henrik.strand@axis.com designates 195.60.68.12 as permitted sender) Received: from [195.60.68.12] (HELO anubis.se.axis.com) (195.60.68.12) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 14:57:35 +0000 Received: from localhost (localhost [127.0.0.1]) by anubis.se.axis.com (Postfix) with ESMTP id 1B84519D8A for ; Thu, 16 Jun 2011 16:57:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at anubis.se.axis.com Received: from anubis.se.axis.com ([127.0.0.1]) by localhost (anubis.se.axis.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Scjdr55O1Bbb for ; Thu, 16 Jun 2011 16:57:14 +0200 (CEST) Received: from thoth.se.axis.com (thoth.se.axis.com [10.0.2.173]) by anubis.se.axis.com (Postfix) with ESMTP id 8F9D519D1D for ; Thu, 16 Jun 2011 16:57:14 +0200 (CEST) Received: from xmail2.se.axis.com (xmail2.se.axis.com [10.0.5.74]) by thoth.se.axis.com (Postfix) with ESMTP id 8DE2434151 for ; Thu, 16 Jun 2011 16:57:14 +0200 (CEST) Received: from [10.93.81.1] (10.93.81.1) by xmail2.se.axis.com (10.0.5.74) with Microsoft SMTP Server (TLS) id 8.2.176.0; Thu, 16 Jun 2011 16:57:14 +0200 Subject: Re: Socket transfer from Apache httpd to a non-httpd process From: Henrik Strand To: "modules-dev@httpd.apache.org" In-Reply-To: References: <1308213170.17763.14.camel@lnxhenrikst.se.axis.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 16 Jun 2011 16:57:14 +0200 Message-ID: <1308236234.17763.36.camel@lnxhenrikst.se.axis.com> MIME-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Ben, I've tried that but with no success. The problem (i.e., that the connection is closed) still remains. Best Regards, Henrik On Thu, 2011-06-16 at 13:44 +0200, Ben Noordhuis wrote: > 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.