Created
April 8, 2017 11:15
-
-
Save myarik/1716afaf366ddd152e17415e08a5f21b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conn = aiohttp.TCPConnector(verify_ssl=False, limit=5) | |
session = aiohttp.ClientSession(connector=conn, loop=loop) | |
futures = list() | |
for link in links: | |
futures.append(asyncio.ensure_future(task(session, link))) | |
await asyncio.gather(*futures) | |
concurrent.futures._base.TimeoutError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment