Closed bethebest0622 closed 5 months ago
I am very careful for latency.
so the best solution i come out with is:
I want to http request try best to reuse the previous connections.
parallelized handle the http get/post request with a pool and this parallelized request reuse previous connections so that can avoid rebuild the connection.
Is cpr can implement this?
add some setting or config
To reuse a connection, try using cpr::Session. More docs are available here: https://docs.libcpr.org/advanced-usage.html#session-objects
cpr::Session
Is your feature request related to a problem?
I am very careful for latency.
so the best solution i come out with is:
I want to http request try best to reuse the previous connections.
parallelized handle the http get/post request with a pool and this parallelized request reuse previous connections so that can avoid rebuild the connection.
Is cpr can implement this?
Possible Solution
add some setting or config