[Catalyst] Resurrected: HTTP redirect - delayed Firefox

Andy Grundman andy at hybridized.org
Fri Feb 23 22:27:40 GMT 2007


On Feb 23, 2007, at 5:04 PM, Svilen Ivanov wrote:

> But the Engine::HTTP doesn't provide the Content-Length. This can  
> be fixed
> by adding a few lines in finalize_headers (Engine/HTTP.pm, at line  
> 53):
>    if ($self->_keep_alive) {
>        $c->response->headers->content_length( length($c->response- 
> >body) );
>    }

Hmm, Content-Length should already be set elsewhere in the code, in  
Catalyst::finalize_headers.

> Both IE and Firefox seem to play well this change.
>
> Now if only we could figure out why IE doesn't work without the -k...
> Otherwise I suggest that we make the -k the default. Having all  
> browsers
> play nicely be default is a good thing (IMO). (And might save someone
> else a day of trying to track down an elusive bug).

-k as implemented in the HTTP server is a hack and should not be the  
default.

I have spent some time the last few days trying to get keep-alive  
working properly in the POE engine, but ran into some issues.  If you  
want a proper server with keep-alive, this is where the work should  
be done, and I would appreciate any help in getting keep-alive  
working properly there.

-Andy





More information about the Catalyst mailing list