logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Unknown errors in the Apache2 error.log - mod_perl

 
Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner



View previous topic :: View next topic  
Author Message
nawglan



Joined: 17 Sep 2012
Posts: 10

PostPosted: Wed 28 Oct '15 22:17    Post subject: Unknown errors in the Apache2 error.log - mod_perl Reply with quote

[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: 6255
Location: Germany, Next to Hamburg

PostPosted: Thu 29 Oct '15 12:16    Post subject: Reply with quote

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: 2123
Location: Sun Diego, USA

PostPosted: Thu 29 Oct '15 23:09    Post subject: Reply with quote

remove STDOUT so it can print to the browser provided Content-type has been previously set.
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner
Page 1 of 1