[ic] intermittent 500 error with Link.pm

Grant emailgrant at gmail.com
Tue Oct 4 17:09:33 UTC 2016

>>> 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.
>> I think you're exactly right but can I handle that scenario properly in
>> Link.pm so that a 500 is not produced?
> I'm not sure.
> But what do you think it should do if not a 500? It certainly isn't a 2xx
> result.
> The C-based vlink program that we normally use throws 500s in this situation
> too.

Should it be an internal server error though?  It sounds like this
happens due to normal client activity and the server should hopefully
be able to handle that gracefully and return a more accurate HTTP
status code without bothering the error_log.

I tried this in Link.pm but no change in error.log output:

print @out or die "print: $!\n";

- Grant

More information about the interchange-users mailing list