Subject: | PreFork parent dies unexpectedly when using child_communication |
Here's a simple example:
package Foo;
use Net::Server::PreFork;
@ISA = qw(Net::Server::PreFork);
Foo->run('max_requests'=>2, 'child_communication'=>1);
When I run this, then connect and disconnect to the port, the parent dies and I get the following:
Can't call method close on an undefined value at /usr/lib/perl5/site_perl/5.8.4/Net/Server.pm line 1193, <_READ> line 6.
Sometimes it takes multiple connect/disconnect attempts before the parent dies. The problem disappears when not using child_communication.
I verified this behavior on the following systems:
Perl 5.8.3 on Fedora Core 1
Perl 5.8.4 on Redhat 6.2
Perl 5.005 on Redhat 6.2
Perl 5.6.1 on Solaris 8 (sparc)