Skip to content

[2.7] bpo-3243: Support iterable bodies in httplib#10226

Closed
tzickel wants to merge 1 commit intopython:2.7from
tzickel:itersend
Closed

[2.7] bpo-3243: Support iterable bodies in httplib#10226
tzickel wants to merge 1 commit intopython:2.7from
tzickel:itersend

Conversation

@tzickel
Copy link
Contributor

@tzickel tzickel commented Oct 29, 2018

I know this is kinda late to the party, but this is not a new functionality API-wise, but a feature parity is required to make HTTP libraries such as requests (and others), be able to send data efficiently.

requests for example uses this piece of code to send the POST data over the HTTP socket if the connection is not chunked. But if the POST data is an iterable object (for example, you want to send the data natively how you stored it, and not split it of read it in 8192 or block chunks), Python 3 works just fine, but Python 2 borks on the sendall(iterable), this fixes this issue...

https://bugs.python.org/issue3243

@tzickel
Copy link
Contributor Author

tzickel commented Nov 6, 2018

@orsenthil any chance to get this in?

@zware
Copy link
Member

zware commented Jan 19, 2020

Hi @tzickel! Unfortunately this didn't get noticed before Python 2.7 reached EOL on January 1st. As this does not appear to be a critical security issue, there is almost no chance that it will be accepted in this brief limbo window between end-of-support and the final 2.7.18 release, so I'm going to go ahead and close it.

Thanks for your contribution anyway, and I hope your next one is more fruitful!

@zware zware closed this Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants