<html>
<body>
Hi!<br><br>On Fri, Nov 18, 2011 at 08:31:18AM -0500, Itamar Turner-Trauring wrote:<br>&gt; Presumably there is a method somewhere that decides to close the<br>&gt; connection down:<br>&gt; <br>&gt;&nbsp;&nbsp;&nbsp; def timeToShutdown(self):<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.transport.loseConnection()<br><br>Actually, I hoped that I'd find such a method in the framework. When the<br>twistd daemon is shut down, it has to close all connections, and it would<br>have been nice if there were a hook that could be overridden.<br><br>But AFAICT, the respective code is buried inside the BaseConnector class,<br>and I'd rather leave it alone :-).<br><br>Anyway - it should be possible to send some kind of message to the daemon<br>in the init script before shutting it down.<br><br>Thanks &amp; best regards,<br>-- <br>Albert Brandl | Weiermayer Solutions GmbH<br><BR />
<BR />
<img src="cid:7f536f0e.42d6c947.jpg.fd56c1be">​<br><font id="ext-gen2860" face="arial" size="1"><font id="ext-gen2870">A-4813 Altmünster</font> - Abteistraße 12 - web: www.weiermayer.com - phone: +43761287677 - fax: +43761220356 - mobile: +436642442777</font><br><BR />
</body>
</html>