[Twisted-Python] quitting clients connected to a server from serverside

Patrick Scharrenberg pittipatti at web.de
Tue May 20 09:55:36 EDT 2008


I have a server with multiple clients (processing nodes) which send
their data periodically to the server using PB.

Now I'm trying to quit the clients from the server-side, eg. when the
server is shut down.
I tried to install a "quit-callback-routine" from the client on the
server, which the server should start if it wants a client to shutdown.
But this doesn't work, instead I get a
	twisted.spread.jelly.InsecureJelly: method

Please find attached some sample-code I used for testing.

I think I was 'a little'  to optimistic, that things just work when
trying to send methods over the net and expecting twisted to know how to
handle with this.

But what do I have to change, to archive the result I'm expecting?

Thanks in advance

-------------- next part --------------
A non-text attachment was scrubbed...
Name: quitClient.py
Type: text/x-python
Size: 925 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20080520/539faa5c/attachment.py 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quitServer.py
Type: text/x-python
Size: 416 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20080520/539faa5c/attachment-0001.py 

More information about the Twisted-Python mailing list