In my Perl web application running under Apache mod_fastcgi, errors often appear, such as the following:
The maximum number of pending signals (120) is exceeded on line 119.
I have seen this happening in relation to file uploads, but I'm not sure if this is the only time this happens. I also get SIGPIPE right before (or maybe after), I get this error.
Any thoughts?
EDIT Thanks for all the suggestions. Someone asked what a line is. Sorry had to put this in. This is in the code block where I run the virus scan in the downloaded file. I do not get an error every time, only occasionally.
if(open VIRUS_CK, '|/usr/local/bin/clamscan - --no-summary >'.$tmp_file) { print VIRUS_CK $data; // THIS IS LINE 119 close VIRUS_CK; if (($? >> 8) == 1) { open VIRUS_OUTPUT, '<'.$tmp_file; my $vout = <VIRUS_OUTPUT>; close VIRUS_OUTPUT; $vout =~ s/^stdin:\s//; $vout =~ s/FOUND$//; print STDERR "virus found on upload: $vout\n"; return undef, 'could not accept attachment, virus found: '.$vout; } unlink($tmp_file); }
perl fastcgi mod-fastcgi
Nxt
source share