From: Antoine Pitrou Date: Sat, 15 Dec 2012 18:23:34 +0000 (+0100) Subject: Issue #16298: In HTTPResponse.read(), close the socket when there is no Content-Lengt... X-Git-Tag: v3.4.0a1~1853 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3454339430b892f6d45abdc695c7ad2ddb1bf8f6;p=python Issue #16298: In HTTPResponse.read(), close the socket when there is no Content-Length and the incoming stream is finished. Patch by Eran Rundstein. --- 3454339430b892f6d45abdc695c7ad2ddb1bf8f6 diff --cc Misc/NEWS index f04a08ec50,5020c9d42d..7b8636a730 --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -167,15 -108,10 +167,19 @@@ Core and Builtin Library ------- + - Issue #16298: In HTTPResponse.read(), close the socket when there is no + Content-Length and the incoming stream is finished. Patch by Eran + Rundstein. + +- Add abc.ABC class to use inheritance rather than a direct invocation of + ABCMeta metaclass. Patch by Bruno Dupuis. + +- Expose the TCP_FASTOPEN and MSG_FASTOPEN flags in socket when they're + available. + +- Issue #15701: Add a .headers attribute to urllib.error.HTTPError. Patch + contributed by Berker Peksag. + - Issue #15872: Fix 3.3 regression introduced by the new fd-based shutil.rmtree that caused it to not ignore certain errors when ignore_errors was set. Patch by Alessandro Moura and Serhiy Storchaka.