Async request appears to not be reusing http connection #2358
-
Hi, I am using async reqwest and I get the following log message for each call to the same endpoint: So it appears that reqwest is not reusing the http connection Here is the code snippet:
I have read that the response must be consumed before the http connection is cached in async mode, but I am doing something wrong here. Any tips? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
These are just some things I can think of. |
Beta Was this translation helpful? Give feedback.
-
Right server is sending back this: So it looks like the server is closing it anyways. |
Beta Was this translation helpful? Give feedback.
connection: close
header? Or otherwise closing the connection anyways?These are just some things I can think of.