Skip Menu |

This queue is for tickets about the Net-Server CPAN distribution.

Report information
The Basics
Id: 3671
Status: resolved
Priority: 0/
Queue: Net-Server

People
Owner: Nobody in particular
Requestors: roman [...] 3legs.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.85
Fixed in: (no value)



Subject: Perfork not able to spawn properly
Hi, I was finding that the perfork personality of Net::Server was not maintaining its children correctly. It would not spawn new servers when neccessary. I traced this back to the run_child() method of Net::Server::Prefork. It was because the _WRITE handle was not being autoflushed (I think), anyway making it autoflush fixed the problem. This is running under perl 5.6.1 on Linux hardware I have attached the fixed version. Code Added to Net::Server::Prefork::run_child(): local *_WRITE = $prop->{_WRITE}; _WRITE->autoflush(1);

Message body is not shown because it is too large.

From: roman [...] 3legs.com
[guest - Fri Aug 29 09:15:29 2003]: Sorry forgot this: Show quoted text
> uname -a
Linux linux2 2.4.4-4GB #1 Fri May 18 14:11:12 GMT 2001 i586 unknown Show quoted text
> perl -v
This is perl, v5.6.0 built for i586-linux Show quoted text
> Hi, I was finding that the perfork personality of Net::Server was not > maintaining its children correctly. It would not spawn new servers > when neccessary. I traced this back to the run_child() method of > Net::Server::Prefork. It was because the _WRITE handle was not > being autoflushed (I think), anyway making it autoflush fixed the > problem. > > This is running under perl 5.6.1 on Linux hardware > > I have attached the fixed version. > > Code Added to Net::Server::Prefork::run_child(): > local *_WRITE = $prop->{_WRITE}; > _WRITE->autoflush(1);