Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: timwood0 [...] pacbell.net
Cc:
AdminCc:

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



Subject: SimpleHTTP server exits with error on rapid reloads
With a simple server built from the synopsis code, the error Show quoted text
> Use of uninitialized value in concatenation (.) or string at SMSCenter.pl line 89. [my source line number]
occurs. I traced it to this code: sub GOT_ERR { ... # Do our stuff to HTTP::Response $response->code( 404 ); $response->content( "Hi visitor from " . $request->connection->remote_ip . ", Page not found -> '" . ^^^^^^^^^^ where it turns out that the "remote_ip" reference does not exist. I changed it to read: $response->content( "Hi visitor from " . $request->connection->{'Remote_IP'} . ... and it worked.