python / cpython

The Python programming language
https://www.python.org
Other
62.15k stars 29.87k forks source link

xmlrpc client transport and threading problem #58509

Open 8844a821-666d-499f-aff1-2e5d2b2cebe9 opened 12 years ago

8844a821-666d-499f-aff1-2e5d2b2cebe9 commented 12 years ago
BPO 14301
Nosy @loewis

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields: ```python assignee = None closed_at = None created_at = labels = ['type-bug', 'library'] title = 'xmlrpc client transport and threading problem' updated_at = user = 'https://bugs.python.org/kees' ``` bugs.python.org fields: ```python activity = actor = 'BreamoreBoy' assignee = 'none' closed = False closed_date = None closer = None components = ['Library (Lib)'] creation = creator = 'kees' dependencies = [] files = [] hgrepos = [] issue_num = 14301 keywords = [] message_count = 2.0 messages = ['155751', '222191'] nosy_count = 2.0 nosy_names = ['loewis', 'kees'] pr_nums = [] priority = 'normal' resolution = None stage = None status = 'open' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue14301' versions = ['Python 2.7'] ```

8844a821-666d-499f-aff1-2e5d2b2cebe9 commented 12 years ago

The transport (second parameter to ServerProxy) must be unique for every thread. This was not the case in pre-python2.7. It is caused by the reuse of the connection (stored in _connection). This could be handled by saving the thread id too.

I don't know whether this is a coding error or a documentation omission.

83d2e70e-e599-4a04-b820-3814bbdb9bef commented 10 years ago

@Kees sorry for the delay in getting back to you.

@Martin can you comment on this please.