projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1113364
)
cleanup
author
Kenneth Reitz
<me@kennethreitz.com>
Mon, 26 Sep 2011 04:04:38 +0000
(
00:04
-0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Mon, 26 Sep 2011 04:04:38 +0000
(
00:04
-0400)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index adf292750057607d4af20bc68d43a00a488d9e1b..6b88280242982d245350b072ef7b9ca93636eebb 100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-260,11
+260,11
@@
class Request(object):
try:
# Create a new HTTP connection, since one wasn't passed in.
if not self._pools:
+
# Create a pool manager for this one connection.
pools = PoolManager(
num_pools=self.config.get('max_connections'),
- maxsize=1
- )
+ maxsize=1)
# Create a connection.
connection = pools.connection_from_url(url, timeout=self.timeout)