High memory usage when using HTTP/3 requests #550
Unanswered
LuisSCorreia
asked this question in
Q&A
Replies: 1 comment 9 replies
-
Can you reproduce the memleak when using h2 or h1.1 with curl_cffi? Is it h3 only? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all.
Recently I decided to try out
curl_cffi
due to its support for HTTP/3 requests. However, unlike what happens with the standardrequests
Python library (which uses HTTP/1.1), the memory used by my process/script keeps increasing steadily.For context, I have a script which issues a request to a number of endpoints to test out their response times.
The following is a simplified/redacted version of my code:
I tried using
mprof
to debug this. When I plot out the memory usage when usingcurl_cffi
, this is the result:However, when using the standard
requests
(and HTTP/1.1 consequently), this is the result - which is the expected/correct behavior:Why does this happen? And how can I mitigate it?
I appreciate any help that you can give, as this is really important for me.
Beta Was this translation helpful? Give feedback.
All reactions