You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Making multiple simultaneous requests to a single host results in a curl error if a TCP connection to the requested host was established earlier (a request was made previously).
Expected behavior
The requests will be successfully completed and the bytes of the requested images will be received with an HTTP status of 200, as occurs when using httpx.
same error. when streaming curl_cffi.requests.errors.RequestsError: Failed to perform, curl: (18) . See https://curl.se/libcurl/c/libcurl-errors.html first for more details.
Looks like AsyncSession(curl_options={CurlOpt.FRESH_CONNECT: True}) (proposed in #319) is beter workaround and can be achieved without patch, test works like expected if this option provided.
Describe the bug
Making multiple simultaneous requests to a single host results in a
curl
error if a TCP connection to the requested host was established earlier (a request was made previously).To Reproduce
httpx
usingpip install httpx
curl-cffi
usingpip install curl-cffi
Expected behavior
The requests will be successfully completed and the bytes of the requested images will be received with an HTTP status of 200, as occurs when using
httpx
.Versions
pip freeze
dump:Additional context
The text was updated successfully, but these errors were encountered: