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.