Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3DD1D4E7 for ; Thu, 15 Nov 2012 18:41:28 +0000 (UTC) Received: (qmail 58470 invoked by uid 500); 15 Nov 2012 18:41:27 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 58440 invoked by uid 500); 15 Nov 2012 18:41:27 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 58433 invoked by uid 99); 15 Nov 2012 18:41:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2012 18:41:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [65.110.20.35] (HELO mail.inter-corporate.com) (65.110.20.35) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2012 18:41:21 +0000 Received: from Spooler by mail.inter-corporate.com (Mercury/32 v4.62) ID MO00187A; 15 Nov 2012 10:22:40 -0800 Received: from spooler by mail.inter-corporate.com (Mercury/32 v4.62); 15 Nov 2012 10:22:15 -0800 Received: from [10.88.0.6] (96.53.47.42) by mail.inter-corporate.com (Mercury/32 v4.62) with ESMTP ID MG001876; 15 Nov 2012 10:22:12 -0800 From: "Randolf Richardson" Organization: Inter-Corporate Computer & Network Services To: mod_perl list Date: Thu, 15 Nov 2012 10:40:50 -0800 MIME-Version: 1.0 Subject: Re: Connection aborted (blank line after headers?) Reply-to: randolf@modperl.pl Message-ID: <50A53732.8175.BBBB97F5@randolf.modperl.pl> Priority: normal In-reply-to: <50A533A6.2080402@coolplaces.ca> References: <50A3D263.9090509@coolplaces.ca>, <50A3F206.3000001@ice-sa.com>, <50A533A6.2080402@coolplaces.ca> X-mailer: Pegasus Mail for Windows (4.63) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body X-Virus-Checked: Checked by ClamAV on apache.org > Thanks Andre. > > On 14/11/12 12:33 PM, Andr=E9 Warnier wrote: > > Dave Morgan wrote: > > Snip..... > > > > >> We did find the use statement and removed it. We now get > >> > >> Software caused connection abort at > >> /home/apache/metapoint/trunk/Utility.pm line 231. > >> > > > > Ok, so now you know at which line of which module this issue happens. > > Is that you only issue (this line in the logs) ? > Pretty well, we also get a similar problem when some IE clients download > pictures (jpg's). > > Software caused connection abort at /home/apache/metapoint/trunk/Metadot= /UploadsManager.pm line 216, chunk 1.\n > > The code here is (edited for brevity) > > open OUT, "<$read_file"; > binmode (OUT); > print $CGI->header(%header_values); > { > local $/ =3D undef; > while() { > print; > } > } [sNip] One question: Do you need a blank line after the headers to differentiate from the content? If $CGI->header isn't providing it, then this could explain why the client isn't getting the image, and raw binary data where headers are expected could be a problem too. open OUT, "<$read_file"; binmode (OUT); print $CGI->header(%header_values); print "\r\n"; # --- Some systems may only need "\n" { local $/ =3D undef; while() { print; } } Consider this to be a random idea that may be worth trying. I hope this helps. Randolf Richardson - randolf@inter-corporate.com Inter-Corporate Computer & Network Services, Inc. Beautiful British Columbia, Canada http://www.inter-corporate.com/