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.

classification
Title: xmlrpclib.ServerProxy with verbosity produces bad output
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Erez.Sh, loewis
Priority: normal Keywords:

Created on 2011-02-07 17:33 by Erez.Sh, last changed 2022-04-11 14:57 by admin.

Messages (2)
msg128141 - (view) Author: Erez Sh (Erez.Sh) Date: 2011-02-07 17:33
In xmlrpclib, a ServerProxy initialized with verbose=True produces an occasionally jumbled-up output, due to a multiple threads writing to stdout without synchronizing.

I noticed this happening only for incoming data (at line 1461:                 print "body:", repr(data) ).

I seem to have fixed it locally by accumulating all the data and printing it (within a lock) outside of the send/recv loop.

It is a useful feature for debugging and logging the 'raw' communication, but virtually useless if one can't rely on its output.
msg220895 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-06-17 21:18
I'm assuming that this is classed as an enhancement request and not a bug.
History
Date User Action Args
2022-04-11 14:57:12adminsetgithub: 55351
2019-03-15 23:24:30BreamoreBoysetnosy: - BreamoreBoy
2014-06-17 21:18:18BreamoreBoysetversions: + Python 3.5, - Python 2.7
nosy: + loewis, BreamoreBoy

messages: + msg220895

type: enhancement
2011-02-07 17:33:38Erez.Shcreate