[Twisted-Python] How to be sure a ssl connection was completed correctly

Hanusz L. Hanusz at aegtranzcom.com
Mon Jan 23 08:46:40 EST 2012


Hi,

I'm using the pull method to send events to clients (with xmlrpc over ssl).
The events are in a queue and when a client calls my 'get_event' xmlrpc function; I get one event from the queue and send it to the client.

The problem is that I want to be sure that the client receives all the events.

Is it correct to assume that:
IF the method connectionLost of my protocol (the wrapped protocol of the ssl protocol) is called with a failure(error.ConnectionDone())
THEN the connection was completed successfully and the client received the event correctly ?

Thanks,

Leszek
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by Mailsecurity software
#####################################################################################



More information about the Twisted-Python mailing list