## asyncio too many file descriptors in select()
asyncio too many file descriptors in select()
我在异步爬虫中使用了asyncio.Semaphore 限制了数量在100,但是程序运行到一半就崩溃了,然后我看到了这篇文章Python asyncio/aiohttp: ValueError: too many file descriptors in select() on Windows.将限制改到了30,结果也是一样。也尝试使用connector = aiohttp.TCPConnector(limit=60)
session = aiohttp.ClientSession(connector=connector),程序直接报错,如下图