I'd like to create a xmlrpc function get_message with the following 
characteristic : 
 - If the server doesn't have any message to send the client, the server will 
answer with a timeout after 60s (and the client can retry)
 - If the server has a message to send to the client, the answer is sent 
directly

To do that, can I do the following:
- create a deferred in the xmlrpc function with a calllater of 60s and keep a 
reference to this deferred in the factory
  * If the server has no message to send, the deferred will be called by the 
reactor and answer a timeout
 * If the server has a message to send, it will call the deferred in his own 
code (with a parameter ?) before the reactor and answer the message.

Is it possible to call a deferred before the reactor like this ?

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

_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to