summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Tomecek <ttomecek@redhat.com>2015-03-18 19:51:10 +0100
committerTomas Tomecek <ttomecek@redhat.com>2015-03-18 19:51:10 +0100
commit53a1e6a68fb521dee8bf4f64c9e7c33c1fce2137 (patch)
treed8949f20c7edc9cf50533b117da7b177a54fd99b
parent3b27758a0c4a36c7ae045cba729970aad2941d6b (diff)
downloadurllib3-53a1e6a68fb521dee8bf4f64c9e7c33c1fce2137.tar.gz
read chunked: don't close socket, release conn instead
-rw-r--r--urllib3/response.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/urllib3/response.py b/urllib3/response.py
index 19a1f244..7e08fffe 100644
--- a/urllib3/response.py
+++ b/urllib3/response.py
@@ -424,5 +424,5 @@ class HTTPResponse(io.IOBase):
break
# We read everything; close the "file".
- self.close()
+ self.release_conn()