Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Unknown errors in the Apache2 error.log - mod_perl |
|
Author |
|
nawglan
Joined: 17 Sep 2012 Posts: 10
|
Posted: Wed 28 Oct '15 22:17 Post subject: Unknown errors in the Apache2 error.log - mod_perl |
|
|
[Tue Oct 27 12:10:13 2015] [notice] Apache/2.2.29 (Win32) mod_ssl/2.2.29 OpenSSL/1.0.2d-fips mod_perl/2.0.8 Perl/v5.20.2 configured -- resuming normal operations
[snip]
[Tue Oct 27 14:12:23 2015] [error] :Apache2 IO write: (106) Unknown error at D:/emsng_cms/apps/cms_editor/cgi-bin/cms.pl line 523
The line in cms.pl is the print statement in the following function:
Code: |
################################################################################
sub output
#
# Outputs a string unbuffered to reduce memory usage.
#
################################################################################
{
local $| = 1;
local $/;
print STDOUT $_[0];
}
|
Any clue as to how I can fix this? We see several of those messages in the error.log and then the apache server restarts.
Many thanks. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7374 Location: Germany, Next to Hamburg
|
Posted: Thu 29 Oct '15 12:16 Post subject: |
|
|
STDOUT? That might be the issue. I don't know about perl, but in other languages that works only on the console and cgi. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 29 Oct '15 23:09 Post subject: |
|
|
remove STDOUT so it can print to the browser provided Content-type has been previously set. |
|
Back to top |
|
|
|
|
|
|