Skip to content

Instantly share code, notes, and snippets.

@Calzzetta
Last active August 29, 2015 14:14
Show Gist options
  • Save Calzzetta/8f833311e542132cf266 to your computer and use it in GitHub Desktop.
Save Calzzetta/8f833311e542132cf266 to your computer and use it in GitHub Desktop.
Connection pool urllib3
import urllib3
pool = urllib3.PoolManager(num_pools=10)
for i in range(100):
resp = pool.urlopen('POST', 'your-url.com', headers = {...}, body = '...')
print(resp.data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment