Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 36239 invoked from network); 1 Mar 2007 19:07:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Mar 2007 19:07:06 -0000 Received: (qmail 72428 invoked by uid 500); 1 Mar 2007 19:07:14 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 72404 invoked by uid 500); 1 Mar 2007 19:07:13 -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 72395 invoked by uid 99); 1 Mar 2007 19:07:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 11:07:13 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.151.18.208] (HELO dedi17.smart-servers.de) (83.151.18.208) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 11:07:01 -0800 Received: from xdsl-87-78-74-136.netcologne.de ([87.78.74.136] helo=dilbert.crrrwg.de ident=foobar) by dedi17.smart-servers.de with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1HMqWl-0000wo-Sw for modules-dev@httpd.apache.org; Thu, 01 Mar 2007 20:01:20 +0100 Received: from asus.crrrwg.de ([192.168.201.92] ident=aad91a65d145d56c99db546bd3887f7c) by dilbert.crrrwg.de with esmtp (Exim 4.50) id 1HMqbu-0001YI-Ca for modules-dev@httpd.apache.org; Thu, 01 Mar 2007 20:06:38 +0100 Subject: Re: how to say to apache, to not send headers From: Joachim Zobel Reply-To: jzobel@heute-morgen.de To: modules-dev@httpd.apache.org In-Reply-To: <45E4759D.5040009@noip.sk> References: <45E4759D.5040009@noip.sk> Content-Type: text/plain Organization: Not organized Date: Thu, 01 Mar 2007 20:06:38 +0100 Message-Id: <1172775998.4754.18.camel@test.asus> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 Content-Transfer-Encoding: 7bit X-SA-Do-Not-Run: Yes X-SA-Exim-Connect-IP: 87.78.74.136 X-SA-Exim-Rcpt-To: modules-dev@httpd.apache.org X-SA-Exim-Mail-From: jzobel@heute-morgen.de X-SA-Exim-Scanned: No (on dedi17.smart-servers.de); SAEximRunCond expanded to false X-Virus-Checked: Checked by ClamAV on apache.org Am Dienstag, den 27.02.2007, 19:17 +0100 schrieb bronto: > I have a module written by me, which (less or more) serves content. > Everything went well until we ran some JMeter tests, which has > discovered that keep-alive requests, to our module, are returning > zero-sized OK pages (I mean code 200, with content-length:0). Ethereal > discovered that it actually served the content, _but_ after that apache > sends out another headers. Which is certainly ok, because it thinks that > there was no content sent. You have probably just discovered chunked coding, which is a rather annoying discovery. My conjecture is, that either you send a content length header (this is wrong with chunked coding IIRC) or the authors of JMeter have yet to discover chunked encoding. The second would mean your module is behaving correctly. > What I need, is a way how can I tell apache, to stop processing the > particular request. > But my guess is, that it actually sends headers right after it knows the > length of content and stuff. Yes. That is more or less how chunked coding works. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6.1 Hth, Joachim