Other windows-using folks are responsible for most of the post-0.38
changes. I don't have a windows box, nor do I know a whole lot about
Windows internals. But I've had 3 different people sending me 3
different sets of conflicting bug reports and patches. What works for
one person fails for another and vice-versa. This makes it really hard
for me to do anything useful :/
On Mon, Jul 27, 2009 at 05:53:37PM -0400, kmx via RT wrote:
Show quoted text> Queue: HTTP-Server-Simple
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=48249 >
>
> Hi,
>
> please find the enclosed patch - it changes this port issue and also
>
http://rt.cpan.org/Public/Bug/Display.html?id=42546 (see my last post
> approx 1 hour ago).
>
> In fact RT 42546 is for me more serious (it causes failing tests on Win32).
>
> IMPORTANT: the patch is against stable 0.38 as the latest 0.38_03 does
> not work for me on my Win32 box (despite the fact that it should contain
> Win32 fixes).
>
> --
> kmx
Show quoted text> Pouze v HTTP-Server-Simple-0.38p: blib
> Pouze v HTTP-Server-Simple-0.38p: Makefile
> Pouze v HTTP-Server-Simple-0.38p: Makefile.old
> Pouze v HTTP-Server-Simple-0.38p: pm_to_blib
> diff -u -r HTTP-Server-Simple-0.38/t/01live.t HTTP-Server-Simple-0.38p/t/01live.t
> --- HTTP-Server-Simple-0.38/t/01live.t 2009-01-02 17:17:28.000000000 +0100
> +++ HTTP-Server-Simple-0.38p/t/01live.t 2009-07-27 23:51:06.215623600 +0200
> @@ -7,7 +7,7 @@
> # This script assumes that `localhost' will resolve to a local IP
> # address that may be bound to,
>
> -my $PORT = 8000 + $$;
> +my $PORT = 40000 + int(rand(10000));
>
>
> use HTTP::Server::Simple;
> @@ -40,7 +40,7 @@
> my $s=HTTP::Server::Simple::CGI->new($PORT);
> $s->host("localhost");
> my $pid=$s->background();
> - diag("started server on $pid");
> + diag("started server PID=$pid");
> like($pid, '/^-?\d+$/', 'pid is numeric');
> select(undef,undef,undef,0.2); # wait a sec
> my $content=fetch("GET / HTTP/1.1", "");
> diff -u -r HTTP-Server-Simple-0.38/t/04cgi.t HTTP-Server-Simple-0.38p/t/04cgi.t
> --- HTTP-Server-Simple-0.38/t/04cgi.t 2009-01-02 17:13:08.000000000 +0100
> +++ HTTP-Server-Simple-0.38p/t/04cgi.t 2009-07-27 23:46:23.560527400 +0200
> @@ -3,7 +3,7 @@
> use strict;
>
> plan tests => 22;
> -my $PORT = 8000 + $$;
> +my $PORT = 40000 + int(rand(10000));
>
> my $host = gethostbyaddr(inet_aton('localhost'), AF_INET);
>
> @@ -60,13 +60,13 @@
> }
>
> like(
> - fetch("GET /cgitest/REQUEST_URI?foo%3Fbar",""),
> + fetch("GET /cgitest/REQUEST_URI?foo%3Fbar"),
> qr/foo%3Fbar/,
> "Didn't decode already"
> );
>
> like(
> - fetch("GET /cgitest/foo%2Fbar/PATH_INFO",""),
> + fetch("GET /cgitest/foo%2Fbar/PATH_INFO"),
> qr|foo/bar|,
> "Did decode already"
> );
--