Il 26/07/2012 10:43, Sergey Anufrienko ha scritto:
Hello, everyone!

I've got a pretty high-load system written in Python, using soaplib
0.8 for making SOAP requests to a remote web service. Recently I've
got complaints from the owner of the service about a very high number
(thousands) of TCP connections from my system in TIME_WAIT state on
their server, so I started looking into implementing a connection
pool. As far as I have understood from the source code of both,
soaplib 0.8 and the new Spyne library, they issue a short-living HTTP
request for every call to a RPC method. Is there a
documented/recommended way to implement a connection pool for use with
these libraries, or perhaps a Python SOAP library which supports
keeping an open connection alive and reusing it for future requests
out of the box? Thank you!

try so see if apache mod_proxy is good for you:

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

connection pooling is included, if you have to connect to a single service should be good: simply connect to apache on localhost and let apache manage the connection pool towards the real destination (I think you can achieve the same using squid as reverse proxy too)

Nicola

_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap


_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to