Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI-Application-Server CPAN distribution.

Report information
The Basics
Id: 48085
Status: resolved
Priority: 0/
Queue: CGI-Application-Server

People
Owner: Nobody in particular
Requestors: dmo+pause [...] dmo.ca
Cc:
AdminCc:

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



Subject: t/001_basic.t fails if you're already running something on port 8080
When attempting to 'make install' on a system with services on port 8080: t/001_basic.t ...................... 1/34 # Failed test 'start up my web server' # at t/001_basic.t line 57. # HTTP::Server::Simple->background failed: bind to *:8080: Address already in use at /usr/share/perl/5.10/NEXT.pm line 77 followed by a predictibly large number of failures. This is easily worked around by hacking t/*.t to pass a different port to TestServer->new(), but it would be nice if a different port could be chosen easily, perhaps via $ENV{CGI_APP_SERVER_PORT}.
From: potatohead [...] potatolan.com
Same problem as above<br /> Heres some patches to fix it. The port random thing is stolen from HTTP-Server-Simple's tests.<br /> <br /> -Chris<br /> <br /> On Wed Jul 22 11:34:38 2009, DONEILL wrote: <br /> &gt; When attempting to 'make install' on a system with services on port 8080: <br /> &gt; <br /> &gt; t/001_basic.t ...................... 1/34 <br /> &gt; # Failed test 'start up my web server' <br /> &gt; # at t/001_basic.t line 57. <br /> &gt; # HTTP::Server::Simple-&gt;background failed: bind to *:8080: Address <br /> &gt; already in use at /usr/share/perl/5.10/NEXT.pm line 77 <br /> &gt; <br /> &gt; followed by a predictibly large number of failures. <br /> &gt; <br /> &gt; This is easily worked around by hacking t/*.t to pass a different port <br /> &gt; to TestServer-&gt;new(), but it would be nice if a different port could be <br /> &gt; chosen easily, perhaps via $ENV{CGI_APP_SERVER_PORT}. <br /> <br />
I hate to tell you this after 8 months of silence, but I don't see any patch attached.
this went in to 0.062 -- rjbs