Skip Menu |

This queue is for tickets about the POE-Component-Server-SimpleHTTP CPAN distribution.

Report information
The Basics
Id: 64718
Status: new
Priority: 0/
Queue: POE-Component-Server-SimpleHTTP

People
Owner: Nobody in particular
Requestors: ed [...] donor.com
Cc:
AdminCc:

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



Subject: Possible issue with connections.
Date: Wed, 12 Jan 2011 10:56:51 -0600
To: bug-POE-Component-Server-SimpleHTTP [...] rt.cpan.org
From: Ed Heil <ed [...] donor.com>
In using POE::Component::Server::SimpleHTTP v. 2.06, we've come across a problem with error messages such as: Can't call method "dead" on an undefined value at [...]/POE/Component/Server/SimpleHTTP.pm line 840. The line is: # Mark the client dead $connection->dead(1); This happens when our load balancer makes a check to make sure the port is open where the SimpleHTTP server is listening. We've fixed it with: # Mark the client dead $connection->dead(1) if $connection; I'm afraid at this point I haven't got the ability to do the low-level debugging necessary to determine exactly how $connection comes to be undef, or whether this is the best way to accomplish the fix in the big picture, but I wanted to share the fix in case you found it useful.