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.
--
જલધર
In reply to Stopping an HTTP::Server::Simple server by jaldhar
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |