[issue9550] BufferedReader may issue additional read, may cause hang when backed by blocking socket

2010-08-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: The original patch wasn't good for all cases. I corrected it, added some tests and committed in r83944 (py3k), r83945 (3.1) and r83946 (2.7). Thank you! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions:

[issue9550] BufferedReader may issue additional read, may cause hang when backed by blocking socket

2010-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for caring about such issues. This would also need unit tests and test_io.py (and perhaps a similar change in _pyio.py, although the buffering logic there is different and may not exhibit the issue). -- stage: -> needs patch versions: +Python

[issue9550] BufferedReader may issue additional read, may cause hang when backed by blocking socket

2010-08-09 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9550] BufferedReader may issue additional read, may cause hang when backed by blocking socket

2010-08-09 Thread Jason V. Miller
New submission from Jason V. Miller : While reading, BufferedReader can cause an additional read() to the underlying I/O object after the entire upper-layer byte count has been satisfied. This is unnecessary and troublesome in some cases. In the event that the BufferedReader sits on top of a b