Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: frioux [...] gmail.com
Cc:
AdminCc:

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



Subject: Empty body crashes loop
Date: Thu, 8 Jan 2015 09:46:14 -0600
To: bug-Net-Async-HTTP-Server [...] rt.cpan.org
From: fREW Schmidt <frioux [...] gmail.com>
I think that the server (naHTTPD) is writing malformed HTTP and causing the client (naHTTP) to crash. The Plack response I'm serving is simply [200, [content_type => 'text/plain'], ['']] Changing the response to [200, [content_type => 'text/plain'], ['x']] makes it work. -- fREW Schmidt https://blog.afoolishmanifesto.com
Download (untitled)
application/pgp-signature 819b

Message body not shown because it is not plain text.

I'm afraid I can't reproduce this one currently: $ perlmodversion Net::Async::HTTP::Server 0.07 $ cat rt101409.app sub { return [ 200, [ content_type => "text/plain" ], [''] ]; } $ plackup -s Net::Async::HTTP::Server -p 8080 rt101409.app Plack::Handler::Net::Async::HTTP::Server: Accepting connections at http://0:8080/ ... Meanwhile $ perlmodversion Net::Async::HTTP 0.37 $ perl -Mblib examples/GET.pl http://localhost:8080/ HTTP/1.1 200 OK Content-Length: 0 Content-Type: text/plain $ echo $? 0 causing: 127.0.0.1 - - [11/Jan/2015:16:52:38 +0000] "GET / HTTP/1.1" 200 0 "-" "Perl + Net::Async::HTTP/0.37" -- Paul Evans