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

Report information
The Basics
Id:
66335
Status:
resolved
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
bo.johansson [...] lsn.se
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
0.43
Fixed in:
(no value)



Subject: HTTP-Server-Simple-0.43 is blocking in Windows 7
I am using: * Strawberry-perl-5.12.2.0 * Perl 5, version 12, subversion 2 (v5.12.2) built for MSWin32-x86-multi-thread * Windows 7 Home Premium with Service Pack 1 Problem: HTTP-Server-Simple-0.43 is blocking. Get the system in state, that it must be restarted. It is not possible to kill the blocked processes. In "sub setup_listener" the call "listen( HTTPDaemon, SOMAXCONN ) or croak "listen: $!";" does not return, probably because host is not set. The test 01live.t and 04cgi.t hung and the system must be restarted. For more details about running the tests see below. As a workaround I have added the below marked lines in "sub run" else { $self->host('localhost') if ! defined $self->host; <===================== $self->host('localhost') if $self->host eq '0.0.0.0'; <================= $self->setup_listener; $self->after_setup_listener(); *{"$pkg\::run"} = $self->_default_run; } The workaround gives the test failures: # server_name: localhost' # doesn't match '/server_name: bo-staPav/' Details from tests: ================= 01live.t without changes ------------------------ The test hung and the system must be restarted 1..14 ok 1 - Constructor set port correctly ok 2 - pid is numeric not ok 3 - Returns a page # Failed test 'Returns a page' # at HTTP-Server-Simple-0.43/t/01live.t line 124. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/01live.t line 85, <DATA> line 16. # ' # doesn't match '/Congratulations/' ok 4 - Constructor set port correctly ok 5 - pid is numeric not ok 6 - Returns a page # Failed test 'Returns a page' # at HTTP-Server-Simple-0.43/t/01live.t line 124. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/01live.t line 85, <DATA> line 16. # ' # doesn't match '/Congratulations/' ok 7 - pid is numeric HTTP::Server::Simple::CGI: You can connect to your server at http://localhost:40530/ ok 8 - Returns a page ok 9 - knows what a request isn't ok 10 - HTTP/1.1 request ok 11 - HTTP/0.9 request ok 12 - Signaled 1 process successfully ok 13 - Killed PID: -4276 ok 14 - Killed PID: -2832 # Looks like you failed 2 tests of 14. 01live.t WITH changes --------------------- 1..14 ok 1 - Constructor set port correctly HTTP::Server::Simple::CGI: You can connect to your server at http://localhost:48125/ ok 2 - pid is numeric ok 3 - Returns a page ok 4 - Constructor set port correctly ok 5 - pid is numeric SlowServer: You can connect to your server at http://localhost:48126/ ok 6 - Returns a page ok 7 - pid is numeric HTTP::Server::Simple::CGI: You can connect to your server at http://localhost:48127/ ok 8 - Returns a page ok 9 - knows what a request isn't ok 10 - HTTP/1.1 request ok 11 - HTTP/0.9 request ok 12 - Signaled 1 process successfully ok 13 - Killed PID: -6084 ok 14 - Killed PID: -6088 04cgi.t without changes ------------------------- The test hung and the system must be restarted 1..23 ok 1 - Constructor set port correctly ok 2 - pid is numeric not ok 3 - no file # Failed test 'no file' # at HTTP-Server-Simple-0.43/t/04cgi.t line 43. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/NOFILE/' not ok 4 - method - server_software # Failed test 'method - server_software' # at HTTP-Server-Simple-0.43/t/04cgi.t line 47. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/server_software: HTTP::Server::Simple/\d+.\d+/' not ok 5 - method - request_method # Failed test 'method - request_method' # at HTTP-Server-Simple-0.43/t/04cgi.t line 47. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/request_method: GET/' not ok 6 - method - url # Failed test 'method - url' # at HTTP-Server-Simple-0.43/t/04cgi.t line 47. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/url: http://bo-staPav:40637/' not ok 7 - method - server_port # Failed test 'method - server_port' # at HTTP-Server-Simple-0.43/t/04cgi.t line 47. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/server_port: 40637/' not ok 8 - method - path_info # Failed test 'method - path_info' # at HTTP-Server-Simple-0.43/t/04cgi.t line 47. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/path_info: /cgitest/path_info/' not ok 9 - method - server_name # Failed test 'method - server_name' # at HTTP-Server-Simple-0.43/t/04cgi.t line 47. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/server_name: bo-staPav/' not ok 10 - Environment - SERVER_NAME # Failed test 'Environment - SERVER_NAME' # at HTTP-Server-Simple-0.43/t/04cgi.t line 56. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/SERVER_NAME: bo-staPav/' not ok 11 - Environment - REMOTE_ADDR # Failed test 'Environment - REMOTE_ADDR' # at HTTP-Server-Simple-0.43/t/04cgi.t line 56. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/REMOTE_ADDR: 127.0.0.1/' not ok 12 - Environment - PATH_INFO # Failed test 'Environment - PATH_INFO' # at HTTP-Server-Simple-0.43/t/04cgi.t line 56. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/PATH_INFO: /cgitest/PATH_INFO/' not ok 13 - Environment - SERVER_PROTOCOL # Failed test 'Environment - SERVER_PROTOCOL' # at HTTP-Server-Simple-0.43/t/04cgi.t line 56. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/SERVER_PROTOCOL: HTTP/1.1/' not ok 14 - Environment - REQUEST_METHOD # Failed test 'Environment - REQUEST_METHOD' # at HTTP-Server-Simple-0.43/t/04cgi.t line 56. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/REQUEST_METHOD: GET/' not ok 15 - Environment - REQUEST_URI # Failed test 'Environment - REQUEST_URI' # at HTTP-Server-Simple-0.43/t/04cgi.t line 56. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/REQUEST_URI: /cgitest/REQUEST_URI/' not ok 16 - Environment - SERVER_SOFTWARE # Failed test 'Environment - SERVER_SOFTWARE' # at HTTP-Server-Simple-0.43/t/04cgi.t line 56. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/SERVER_SOFTWARE: HTTP::Server::Simple/\d+.\d+/' not ok 17 - Environment - QUERY_STRING # Failed test 'Environment - QUERY_STRING' # at HTTP-Server-Simple-0.43/t/04cgi.t line 56. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/QUERY_STRING: /' not ok 18 - Environment - SERVER_URL # Failed test 'Environment - SERVER_URL' # at HTTP-Server-Simple-0.43/t/04cgi.t line 56. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/SERVER_URL: http://bo-staPav:40637//' not ok 19 - Environment - SERVER_PORT # Failed test 'Environment - SERVER_PORT' # at HTTP-Server-Simple-0.43/t/04cgi.t line 56. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '/SERVER_PORT: 40637/' not ok 20 - Didn't decode already # Failed test 'Didn't decode already' # at HTTP-Server-Simple-0.43/t/04cgi.t line 65. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '(?-xism:foo%3Fbar)' not ok 21 - Did decode already # Failed test 'Did decode already' # at HTTP-Server-Simple-0.43/t/04cgi.t line 70. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '(?-xism:foo/bar)' not ok 22 - uses HTTP_COOKIE # Failed test 'uses HTTP_COOKIE' # at HTTP-Server-Simple-0.43/t/04cgi.t line 76. # '[ERROR] connect: No connection could be made because the target machine actively refused it. at HTTP-Server-Simple-0.43/t/04cgi.t line 102, <DATA> line 16. # ' # doesn't match '(?-xism:foo=bar)' ok 23 - Signaled 1 process successfully # Looks like you failed 20 tests of 23. 04cgi.t WITH changes ------------------------- 1..23 ok 1 - Constructor set port correctly ok 2 - pid is numeric CGIServer: You can connect to your server at http://localhost:40227/ ok 3 - no file ok 4 - method - server_software ok 5 - method - request_method not ok 6 - method - url # Failed test 'method - url' # at HTTP-Server-Simple-0.43-modified/t/04cgi.t line 47. # 'HTTP/1.0 200 OK # Content-Type: text/html # Content-Length: 27 # # url: http://localhost:40227' # doesn't match '/url: http://bo-staPav:40227/' ok 7 - method - server_port ok 8 - method - path_info not ok 9 - method - server_name # Failed test 'method - server_name' # at HTTP-Server-Simple-0.43-modified/t/04cgi.t line 47. # 'HTTP/1.0 200 OK # Content-Type: text/html # Content-Length: 22 # # server_name: localhost' # doesn't match '/server_name: bo-staPav/' not ok 10 - Environment - SERVER_NAME # Failed test 'Environment - SERVER_NAME' # at HTTP-Server-Simple-0.43-modified/t/04cgi.t line 56. # 'HTTP/1.0 200 OK # Content-Type: text/html # Content-Length: 22 # # SERVER_NAME: localhost' # doesn't match '/SERVER_NAME: bo-staPav/' ok 11 - Environment - REMOTE_ADDR ok 12 - Environment - PATH_INFO ok 13 - Environment - SERVER_PROTOCOL ok 14 - Environment - REQUEST_METHOD ok 15 - Environment - REQUEST_URI ok 16 - Environment - SERVER_SOFTWARE ok 17 - Environment - QUERY_STRING not ok 18 - Environment - SERVER_URL # Failed test 'Environment - SERVER_URL' # at HTTP-Server-Simple-0.43-modified/t/04cgi.t line 56. # 'HTTP/1.0 200 OK # Content-Type: text/html # Content-Length: 35 # # SERVER_URL: http://localhost:40227/' # doesn't match '/SERVER_URL: http://bo-staPav:40227//' ok 19 - Environment - SERVER_PORT ok 20 - Didn't decode already ok 21 - Did decode already ok 22 - uses HTTP_COOKIE ok 23 - Signaled 1 process successfully # Looks like you failed 4 tests of 23.
From: bo.johansson@lsn.se
Is solved in 0.44! Thanks
From: bo.johansson@lsn.se
Vid Tue, 05 apr 2011 kl. 03.21.17, skrev boilund:
Show quoted text
> Is solved in 0.44! > > Thanks
It is NOT solved in 0.44! Sorry, it was a mistake by me.
On Thu Apr 07 06:10:05 2011, boilund wrote:
Show quoted text
> Vid Tue, 05 apr 2011 kl. 03.21.17, skrev boilund:
> > Is solved in 0.44! > > > > Thanks
> > It is NOT solved in 0.44! > > Sorry, it was a mistake by me. >
0.50 prereleases have been passing tests on strawberry smokers, let us know if you're still having issues. -kevin


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.