jaldhar has asked for the wisdom of the Perl Monks concerning the following question:
For a web application, I'm trying to use CGI::Application::Server, a subclass of HTTP::Server::Simple in my modules' tests. So I want to create a server, do the tests and then destroy it when I've finished the tests. The creating is straightforward but how do I say "ok stop now."
Also is there a way to say "start on a guaranteed unused port"? Right now as a workaround, I start at 9323, if the server doesn't start then I add 1 and try again and so on until I get to 9330 when I bail out completely but this doesn't seem to elegant.
--
જલધર
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Stopping an HTTP::Server::Simple server
by Corion (Patriarch) on Oct 26, 2007 at 20:49 UTC | |
Re: Stopping an HTTP::Server::Simple server
by erroneousBollock (Curate) on Oct 26, 2007 at 18:38 UTC | |
Re: Stopping an HTTP::Server::Simple server
by textual (Novice) on Jan 26, 2011 at 13:07 UTC | |
by Corion (Patriarch) on Jan 26, 2011 at 13:14 UTC | |
by textual (Novice) on Jan 26, 2011 at 14:19 UTC | |
by Corion (Patriarch) on Jan 26, 2011 at 14:48 UTC | |
by tilly (Archbishop) on Jan 26, 2011 at 14:54 UTC | |
|
Back to
Seekers of Perl Wisdom