Skip Menu |

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

Report information
The Basics
Id: 3672
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: parent dies unexpectantly
I was getting an intermitant problem where the parent thread would die, but the children would remain. I traced this back to a call to IO::Select::fileno(). I added the following check to Net::Server::delete_child(). The error seemed to happen mostly when the servers were doing lots of very long processes and some of those timed out. Possibly whilst the parent was trying to coordinate_children(). if ($prop->{children}->{$pid}->{sock}) { .. existing code .. } This seems to stop the problem, but I can't help thinking that there is a better way to fix this.

Message body is not shown because it is too large.

From: roman [...] 3legs.com
[guest - Fri Aug 29 09:22:56 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
> I was getting an intermitant problem where the parent thread would > die, but the children would remain. I traced this back to a call > to IO::Select::fileno(). I added the following check to > Net::Server::delete_child(). > > The error seemed to happen mostly when the servers were doing lots of > very long processes and some of those timed out. Possibly whilst > the parent was trying to coordinate_children(). > > if ($prop->{children}->{$pid}->{sock}) { > .. existing code .. > } > > This seems to stop the problem, but I can't help thinking that there > is a better way to fix this.