Subject: | invalid requests causing errors |
If a client connects to the Net::Async::HTTP::Server and doesn't send any data then these warnings are raised and then the whole program dies:
Use of uninitialized value in string eq at /usr/local/perl/lib/site_perl/5.20/Net/Async/HTTP/Server/Request.pm line 171.
Use of uninitialized value in string eq at /usr/local/perl/lib/site_perl/5.20/Net/Async/HTTP/Server/Request.pm line 171.
Can't call method "path" on an undefined value at /usr/local/perl/lib/site_perl/5.20/Net/Async/HTTP/Server/Protocol.pm line 35.
This can be tested using the example code in the documentation and then doing this:
telnet localhost 8080
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
That's two blank lines before the program dies.