Open ripperdoc opened 5 months ago
Possible cause: https://github.com/curl/curl/issues/4915
A simple fix is to force new connection each time:
async def pop_curl(self):
curl = await self.pool.get()
if curl is None:
curl = Curl(debug=self.debug)
+ curl.setopt(CurlOpt.FRESH_CONNECT, 1)
return curl
Describe the bug I'm downloading files with async and streaming. It randomly fails, often when repeating. It could be related to #302 . I mostly get error 18, sometimes 55.
or
To Reproduce
Expected behavior
I expect that I can reuse a session and download files both in parallell and sequentially. Of course, I could reset the session every time as workaround but that could have other implications. Or is there a better way to stream files than aiofiles?
Versions