Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: spamcollector_cpan [...] juerd.nl
Cc:
AdminCc:

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



Subject: undef object in request
<paste> start Can't call method "scheme" on an undefined value at /usr/lib/perl5/site_perl/5.6.1/POE/Component/Server/HTTP.pm line 223. </paste> This happens whenever something requests a document while PoCo::HTTPD is starting up (although it has already printed "start\n" by then). I haven't the time to debug and patch this myself. Sorry for that.
From: StoneToad
[guest - Sat Oct 26 10:21:11 2002]: Show quoted text
> <paste> > start > Can't call method "scheme" on an undefined value at > /usr/lib/perl5/site_perl/5.6.1/POE/Component/Server/HTTP.pm line 223. > </paste> > > This happens whenever something requests a document while PoCo::HTTPD > is > starting up (although it has already printed "start\n" by then). > > I haven't the time to debug and patch this myself. Sorry for that.
As far as I can tell problem is actualy that a HTTP::Response object is getting reblessed into an HTTP::Request object so it doesnt have an uri object. quoteing from http://poe.perl.org/?POE_Cookbook/Web_Server # Filter::HTTPD sometimes generates HTTP::Response objects. # They indicate (and contain the response for) errors that occur # while parsing the client's HTTP request. It's easiest to send # the responses as they are and finish up. It should be a ~2 line change, don't have the source lying around to make a patch right now though.
From: tofu
[guest - Sat Oct 25 14:43:11 2003]: If you add the following to line 226 of HTTP.pm on the latest release +my $uri = $request->uri; +return 0 if not defined $uri; $request->uri->scheme('http'); This will just make it do nothing. I am sure there is a better way, but at least the server does not die. Show quoted text
> [guest - Sat Oct 26 10:21:11 2002]: >
> > <paste> > > start > > Can't call method "scheme" on an undefined value at > > /usr/lib/perl5/site_perl/5.6.1/POE/Component/Server/HTTP.pm line 223. > > </paste> > > > > This happens whenever something requests a document while PoCo::HTTPD > > is > > starting up (although it has already printed "start\n" by then). > > > > I haven't the time to debug and patch this myself. Sorry for that.
> > As far as I can tell problem is actualy that a HTTP::Response object is > getting reblessed into an HTTP::Request object so it doesnt have an uri > object. > > quoteing from http://poe.perl.org/?POE_Cookbook/Web_Server > > # Filter::HTTPD sometimes generates HTTP::Response objects. > # They indicate (and contain the response for) errors that occur > # while parsing the client's HTTP request. It's easiest to send > # the responses as they are and finish up. > > It should be a ~2 line change, don't have the source lying around to > make a patch right now though.