After looking through twisted.spread.db source, I noticed that it implements twisted.internet.protocol. You could use the self.transport.loseConnection facility to forcefully disconnect clients. If you want your client to do a certain routine when the server shuts him down, you could send a custom message to the client first that will trigger some cleanup procedure you have in your client. I do similar stuff like this in our twisted xmpp server. :)<br>
<br><br><div class="gmail_quote">On Tue, May 20, 2008 at 9:55 PM, Patrick Scharrenberg &lt;<a href="mailto:pittipatti@web.de">pittipatti@web.de</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi!<br>
<br>
I have a server with multiple clients (processing nodes) which send<br>
their data periodically to the server using PB.<br>
<br>
Now I&#39;m trying to quit the clients from the server-side, eg. when the<br>
server is shut down.<br>
I tried to install a &quot;quit-callback-routine&quot; from the client on the<br>
server, which the server should start if it wants a client to shutdown.<br>
But this doesn&#39;t work, instead I get a<br>
 &nbsp; &nbsp; &nbsp; &nbsp;twisted.spread.jelly.InsecureJelly: method<br>
error.<br>
<br>
Please find attached some sample-code I used for testing.<br>
<br>
I think I was &#39;a little&#39; &nbsp;to optimistic, that things just work when<br>
trying to send methods over the net and expecting twisted to know how to<br>
handle with this.<br>
<br>
But what do I have to change, to archive the result I&#39;m expecting?<br>
<br>
Thanks in advance<br>
<font color="#888888"><br>
Patrick<br>
</font><br>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.alvinatorsplayground.blogspot.com/">http://www.alvinatorsplayground.blogspot.com/</a>