Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: jeremyhough [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.87
Fixed in: (no value)



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)
A work-around is in #3672.