Skip to content

Instantly share code, notes, and snippets.

@dbrgn
Created January 9, 2013 23:54
Show Gist options
  • Save dbrgn/4498131 to your computer and use it in GitHub Desktop.
Save dbrgn/4498131 to your computer and use it in GitHub Desktop.
import requests
s = requests.Session()
pool_32_adapter = requests.adapters.HTTPAdapter(pool_connections=1, pool_maxsize=32)
s.mount('http://', pool_32_adapter)
s.mount('https://', pool_32_adapter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment