On Thu, Apr 24, 2008 at 4:59 PM,  <[EMAIL PROTECTED]> wrote:
> I have a Perl file upload script I'd been using for years under Apache 1 in
> Tiger. I haven't modified it in ages. No mod_perl, just CGI.pm and the
> default Perl installation. It's always worked fine for files of any size
> (some as many as a gigabyte and taking more than an hour to upload), but
> since upgrading to Leopard, with its Apache2 nonsense, the script fails on
> large files -- anything over a megabyte -- with this being output to the
> browser:
>
>  "CGI.pm: Server closed socket during multipart read (client aborted?).".
>
>  This is the only error message logged, too. I've tested this with multiple
> clients on different operating systems and it's the same every time, unless
> the file's smaller than 1MB, in which case the script executes as it should.
> I added a debugging line to the upload hook that runs when I first create my
> CGI query object, and it reports the bytes increasing up to a point, after
> which it keeps logging these messages but the number of bytes stays static.
> It's never the exact same number but the files always seem to fail above 1
> megabyte, with about 1.4 being the upper limit I've seen so far.
>
>  Any ideas? Thanks
>

What makes you think that this is a Perl issue? CGI.pm reported that
the client closed the connection. Why haven't you investigated that?
Leopard made thousands of changes in addition to the Apache and CGI.pm
versions, including changes to the firewall and networking in general;
I'd take a good, hard look at your system preferences, first. and make
sure you don't have any other old conf files lying around that may be
cousing problems.

If you are certain that the problem is in your Perl script somewhere,
please include, in your next message a small sample script that
replicates the problem. It's very difficult to troubleshoot a
description. It's much easier to troubleshoot code.

HTH,

--jay
--------------------------------------------------
This email and attachment(s): [ ] blogable; [ x ] ask first; [ ]
private and confidential

daggerquill [at] gmail [dot] com
http://www.tuaw.com http://www.downloadsquad.com http://www.engatiki.org

values of β will give rise to dom!

Reply via email to