Skip to content
Myr

use adapter pool size for proxies

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Pepijn de Vos · committed by Pepijn de Vos · parent 99ebac7 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:requests/adapters.py+4 added-1 removed
200 unmodified lines
201202 if not proxy in self.proxy_manager:203 self.proxy_manager[proxy] = proxy_from_url(204 proxy,205 proxy_headers=proxy_headers)205 proxy_headers=proxy_headers,206 num_pools=self._pool_connections,207 maxsize=self._pool_maxsize,208 block=self._pool_block)209210 conn = self.proxy_manager[proxy].connection_from_url(url)211 else:212 # Only scheme should be lower case
181 unmodified lines