[Buildbot-devel] buildslave connects briefly after graceful shutdown?
dank at kegel.com
Wed Jan 9 05:39:54 UTC 2013
On Tue, Jan 8, 2013 at 8:43 PM, Dustin J. Mitchell <dustin at v.igoro.us> wrote:
> def remote_shutdown(self):
> log.msg("slave shutting down on command from master")
> reactor.callLater(0.2, reactor.stop)
How about this - it might be less racy.
the master tells the slave to shut down gracefully;
in response, the slave calls closeReadConnection();
the master then senses writeConnectionLost, and closes
the socket the rest of the way. The slave then senses writeConnectionLost,
stops the reactor, and terminates.
More information about the devel