Skip Menu |

This queue is for tickets about the Net-Async-HTTP-Server CPAN distribution.

Report information
The Basics
Id: 91647
Status: resolved
Priority: 0/
Queue: Net-Async-HTTP-Server

People
Owner: Nobody in particular
Requestors: drrho [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.05
Fixed in: 0.06



Subject: SYNOPSIS would not work with LWP GET ...
Perusing the example in the synopsis only works with a manual telnet <port>. LWP GET, et.al. will block until the server closes the connection. Which it does not unless you add my $r = $req->{req}; $req->{conn}->close if $r->header( 'Connection' ) && $r->header( 'Connection' ) =~ /close/; after the ->respond . rgds, \rho
On Wed Dec 25 03:25:00 2013, DRRHO wrote: Show quoted text
> Perusing the example in the synopsis only works with a > manual telnet <port>. LWP GET, et.al. will block until > the server closes the connection. > > Which it does not unless you add > > my $r = $req->{req}; > $req->{conn}->close if $r->header( 'Connection' ) && $r->header( > 'Connection' ) =~ /close/; > > after the ->respond .
Ah, in actual fact I already had that solved in a different way, by setting the Content-Length header: $response->content_length( length $response->content ); That was sat waiting on some other changes before release, but will be in the next version. -- Paul Evans
Released in 0.06. -- Paul Evans