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 serhiy.storchaka
Recipients kristjan.jonsson, orsenthil, pitrou, r.david.murray, serhiy.storchaka
Date 2013-09-20.12:04:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379678693.08.0.49966425873.issue19009@psf.upfronthosting.co.za>
In-reply-to
Content
After adding read1() and peek() what stop us from inheriting HTTPResponse from BufferedIOBase?

I suggest split _read1_or_peek_chunked() by two parts. First part calculates n bounded by chunk_left (it can read the next chunk size and close a connection if needed). Perhaps it can be reused in _readall_chunked() and _readinto_chunked(() too. Second part which is  controlled by boolean parameter should be moved out in read1() and peek().
History
Date User Action Args
2013-09-20 12:04:53serhiy.storchakasetrecipients: + serhiy.storchaka, orsenthil, pitrou, kristjan.jonsson, r.david.murray
2013-09-20 12:04:53serhiy.storchakasetmessageid: <1379678693.08.0.49966425873.issue19009@psf.upfronthosting.co.za>
2013-09-20 12:04:53serhiy.storchakalinkissue19009 messages
2013-09-20 12:04:52serhiy.storchakacreate