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 BF662C7AE for ; Fri, 20 Apr 2012 01:05:52 +0000 (UTC) Received: (qmail 63113 invoked by uid 500); 20 Apr 2012 01:05:52 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 63061 invoked by uid 500); 20 Apr 2012 01:05:51 -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 63052 invoked by uid 99); 20 Apr 2012 01:05:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2012 01:05:51 +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 andrejvanderzee@gmail.com designates 209.85.212.177 as permitted sender) Received: from [209.85.212.177] (HELO mail-wi0-f177.google.com) (209.85.212.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2012 01:05:44 +0000 Received: by wibhj13 with SMTP id hj13so138683wib.12 for ; Thu, 19 Apr 2012 18:05:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=LbJ6I2kSgTECizsJckOHYW0cw40d4nhSPhsvwEAICx8=; b=0PCeoBgUQyCgFpvXnFYlNMuK0lMmUXbS7GJLqkEqPees/zSdrZZfGJKeWAXHm0D5Uv rekB0FDSSD3Te4QKoGXtYzRccTWD1G6G3lOjaCrGcer2VHBuqbRnl6K9kUwurVKnTQvN OL5JdgygyAYY1C+8ogDDsePgIw4b2CdhJTQq2zGWrPwV15+y9pfglHLtyGrxOyyh/RHs rtGrf+SKWeNi/CY2pg7MBh1sad5kE7XfQsnbwe29Nfe32EPBZVotJZPQKI7sf5dtfmPB t5OWYrgid3ldmQzLt32gFkzfw2AHy5wTTiMVTC2kz+C/lzmwM4CP0Po4b7/btUKKxCJZ MFOA== MIME-Version: 1.0 Received: by 10.180.103.229 with SMTP id fz5mr2266150wib.0.1334883923660; Thu, 19 Apr 2012 18:05:23 -0700 (PDT) Received: by 10.223.104.78 with HTTP; Thu, 19 Apr 2012 18:05:23 -0700 (PDT) Date: Fri, 20 Apr 2012 03:05:23 +0200 Message-ID: Subject: mod cgi From: Andrej van der Zee To: modules-dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hi, I have a question about mod_cgi. How does it react if the client breaks the connection with Apache? In Wireshark I see that the client sends a FIN and the server responds with an ACK. But the server only sends the FIN after the CGI script actually finishes and sends it data. In my setup, this is not desirable. What would be the recommended way to deal with issue? Do I really have to build in a separate thread in my CGI script that checks the connection status, which I guess is not trivial? Thank you, Andrej