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 amaury.forgeotdarc
Recipients amaury.forgeotdarc
Date 2012-12-10.20:14:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1355170472.23.0.747956680603.issue16658@psf.upfronthosting.co.za>
In-reply-to
Content
HTTPConnection.send() accepts a bytes string, a file, and any iterable.

When a file is passed, data is read in blocks until read() returns an empty string.
But because a "return" statement is missing, execution continues with an attempt to iterate the file again...
This exits quickly most of the time, but this can lead to surprising behavior if more data is available, or for custom implementations of the file object.
History
Date User Action Args
2012-12-10 20:14:32amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc
2012-12-10 20:14:32amaury.forgeotdarcsetmessageid: <1355170472.23.0.747956680603.issue16658@psf.upfronthosting.co.za>
2012-12-10 20:14:32amaury.forgeotdarclinkissue16658 messages
2012-12-10 20:14:31amaury.forgeotdarccreate