in reply to Embedding a web-server in a long-running process?
There's POE::Component::Server::HTTP if you're using (or could use) POE.