New submission from STINNER Victor <victor.stin...@haypocalc.com>:

The issue #6099 (part of #6267 superset) introduced a regression:
xmlrpclib.make_connection() is not thread safe. If xmlrpclib is used in two
threads, the socket is shared, but it doesn't any lock, and so data will be
mixed between the two requets. It becomes worse when I use SSL (pyopenssl
or m2crypto).

A possible solution is to use a different socket for each thread.

Note: I really love #6099, it was exactly what I needed :-)

----------
components: Extension Modules
messages: 92596
nosy: haypo
severity: normal
status: open
title: xmlrpclib.make_connection() is not thread safe
type: behavior
versions: Python 2.7, Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6907>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to