This commit is contained in:
Kenneth Reitz
2011-09-26 00:04:38 -04:00
parent 111336459e
commit a7d280cb3d
+2 -2
View File
@@ -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)