[Twisted-Python] for reference - how to get ssl certificate from a xmlrpc function

2012-01-19 Thread Hanusz L .
I had some difficulty to find how to get the ssl certificate from the xmlrpc function but I found how to do it : You can get the protocol from the xmlrpc function with @withRequest http://twistedmatrix.com/documents/11.1.0/api/twisted.web.xmlrpc.withRequest.html Then you can use getPeerCertificate

[Twisted-Python] xmlrpc function return message to client asynchronously

2012-01-19 Thread Hanusz L .
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

[Twisted-Python] questions about testing xmlrpc server with ssl - problems with more than 1000 requests

2012-01-19 Thread Hanusz L .
I did some testing between a twisted xmlrpc ssl server and a twisted client with lots of simultaneous requests. I'm using windows (don't have the choice...), python 2.7, twisted 11.1 and both server and client are on the same computer... (Xeon 2Ghz 3GB of RAM) The client is configured to get a n

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

2012-01-23 Thread Hanusz L .
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 event