Question about connection pool #1935
Replies: 1 comment
-
I read your article here, and came to look at your question. |
Beta Was this translation helpful? Give feedback.
-
I read your article here, and came to look at your question. |
Beta Was this translation helpful? Give feedback.
-
Hi developers,
I meet a strange question when using reqwest in one of my codebase, I can reproduce it with this repo
The demo will start two runtime:
In theory, requests made in IO runtime should finish in 50ms, but there will be one or two requests take 1s to finish, it seems requests made in CPU runtime affect those in IO runtime.
If I disable connection pool via
pool_max_idle_per_host(0)
, then all requests in IO runtime take 50ms to finish, so I wonder if there are some issue with current connection pool implementation.Beta Was this translation helpful? Give feedback.
All reactions