On Fri, Mar 11, 2005 at 11:52:26AM -0500, Rocco Caputo wrote: > On Fri, Mar 11, 2005 at 05:30:31PM +0100, Hildo Biersma wrote: > > > > I want to implement a clean shutdown, in the sense that the server > > should stop accepting new requests, but continue to handle the queued > > ones. Once they are gone, the server should terminate. > > > > Looking at the POE::Wheel::SocketFactory class, the closest method I can > > find is pause_accept(), but that doesn't entirely do what I want - it > > still listens on the socket. Individual sessions have a shutdown() > > method, and I'm really looking for the equivalent for the > > POE::Component::Server::XXX classes. > > How about the "shutdown" command for POE::Component::Server::TCP? > Posting that to the component alias (rather than an individual > connection) will stop the server but should allow existing connections > to finish.
Doh! (slaps forehead). It looks like POE::Component::Server::HTTP has a similar method, so I should be all set. Thanks!