homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kristjan.jonsson
Recipients kristjan.jonsson, vstinner
Date 2009年09月14日.11:10:49
SpamBayes Score 0.00056417566
Marked as misclassified No
Message-id <1252926652.97.0.782047315783.issue6907@psf.upfronthosting.co.za>
In-reply-to
Content
the xmlrpclib.ServerProxy is not thread safe, no. Nor is it designed to 
be. the documentation never claims that it is and the fact that the old 
version was (due to a new HTTPConnection being created each time) is a 
coincidence than a design feature.
In my own client code I use a pool of ServerProxy objects for each 
thread to claim and use one at a time. This way I can have many 
simultaneous requests to the same server going.
You can also create your own lock and share a ServerProxy among threads.
Also note that HTTPConnection is not thread safe either. And in 
general, class instances in the lib are not thread safe unless 
explicitly documented to be so.
History
Date User Action Args
2009年09月14日 11:10:53kristjan.jonssonsetrecipients: + kristjan.jonsson, vstinner
2009年09月14日 11:10:52kristjan.jonssonsetmessageid: <1252926652.97.0.782047315783.issue6907@psf.upfronthosting.co.za>
2009年09月14日 11:10:51kristjan.jonssonlinkissue6907 messages
2009年09月14日 11:10:49kristjan.jonssoncreate

AltStyle によって変換されたページ (->オリジナル) /