Skip Menu |

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

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

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

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



Subject: Synopsis code has a bug
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- Show quoted text
>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- Show quoted text
>{'Remote_IP'} . ...
and it worked.
Hi guest, I'm guessing this is the same person who sent me the e-mail, I believe the problem can be solved simply by upgrading SimpleHTTP::Connection, as the POD states: =head1 CHANGES =head2 1.02 Got rid of funky CaPs in methods ~Apocalypse [guest - Tue Jan 6 20:56:29 2004]: Show quoted text
> Subject: SimpleHTTP server exits with error on rapid reloads > With a simple server built from the synopsis code, the error
> > 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.
[guest - Tue Jan 6 20:56:29 2004]: Ok, after reviewing the source for the second time, I found out it's actually a bug! SimpleHTTP.pm does all the setup for the Connection class and puts the CaPs there, the next update will fix this, thanks again! Show quoted text
> Subject: SimpleHTTP server exits with error on rapid reloads > With a simple server built from the synopsis code, the error
> > 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.
New version uploaded -> 1.04, thanks again! -- ~Apocalypse