[ic] intermittent 500 error with Link.pm

Jon Jensen jon at endpoint.com
Sat Oct 1 01:53:57 UTC 2016


On Fri, 30 Sep 2016, Grant wrote:

> I'm seeing a fair number of 500s in my apache2 access_log which
> correlate to these in my apache2 error_log:
>
> Software caused connection abort at Interchange/Link.pm line 772.\n
>
> Line 772 is 'print @out;' from below:
>
> $r->content_type($set_content);
> my $no_blank_lines = $r->dir_config('NoBlankLines');
> while (<SOCK>) {
> push @out, $_ unless $no_blank_lines and ! /\S/;
> }
> close (SOCK) or die "close: $!\n";
> print @out;
>
> I'm sometimes able to duplicate the problem in a browser by clicking a
> new link before the previously clicked link has delivered its HTML.
> My perl skills are weak but does Link.pm need to handle some kind of
> an exception at line 772?

My guess would be that that is happening when the client's connection is 
broken and Apache closes its filehandles that the program is writing to.

It's pretty amazing how many connections fail to complete on any given day 
out there in the wild.

Jon


-- 
Jon Jensen
End Point Corporation
https://www.endpoint.com/



More information about the interchange-users mailing list