[Twisted-web] Shutting down a xmlrpc server with an xmlrpc call

Rasjid Wilcox rasjidw at openminddev.net
Mon Jun 20 16:39:47 MDT 2005


On Tue, 21 Jun 2005 12:49 am, Phil Mayers wrote:
> Rasjid Wilcox wrote:
> > I am writing an xmlrpc server, and would like to there to be an xmlrpc
> > call to shutdown the server gracefully.
>
> Maybe:
>
> reactor.callLater(1, reactor.stop)
> return "closing in 1 second"

Works like a charm.

Thanks,

Rasjid.

-- 
Rasjid Wilcox
Melbourne, Australia (UTC +10 hrs)



More information about the Twisted-web mailing list