Subject: | User cancel of file upload causes runaway process |
I have been using CGI.pm for upload of photos in one of my scripts with
no problems for a number of years (since 2001). However, a problem has
recently started to appear with the script since I upgraded the service
I have with my ISP. It might be a bug in the current version of CGI.pm.
If a web user starts the transfer of a file of between about 100K and
500k and then cancels using the Stop button on the browser after 5
seconds, the process starts to runaway and uses up all available CPU.
The process keeps running until stopped manually.
I get no errors in the logs, nor to the browser.
The 500K top limit is probably because I use the following:
use CGI;
use CGI::Carp qw(fatalsToBrowser);
$CGI::POST_MAX=1024 * 500; # max 500K posts
Dont know if it is a clue, but I get no errors to the browser if the
user exceeds the 500k file limit (even thought that does not trigger the
runaway problem). Don't know if that is normal.
This happens consistently and is easily replicable on my site.
I have CGI.pm 3.16, perl 5.8.7, RedHat 7.3 i686, Apache/1.3.34 Server.
Linux server.d8ingnetwork.com 2.4.20-021stab022.5.777-enterprise #1 SMP
Fri Sep 3 12:45:02 MSD 2004 i686 unknown
I have tested this using both IE 6 and Firefox 1.5.0.1 with exactly the
same results.
I hope someone can help with this one...:)
Regards,
William