can cpr set keepalive writetimeout readtimeout when sending a post request?
Description
or can i set custom-defined params to curl_opts
Example/How to Reproduce
just a question
Possible Fix
No response
Where did you get it from?
GitHub (branch e.g. master)
Additional Context/Your Environment
- OS: ubuntu
- Version: 22.04
and set tcp_nodelay_ to true is very important in our senario
or i need to implement the sessionparams setting myself?
@carlwang99 thanks for reporting.
Which curl options do you want to be able to set precisely?
There is a workaround for it: https://github.com/libcpr/cpr/issues/1057#issuecomment-2138691120 You can interface with the underlying curl handle directly.
i want to set TCP_NODELAY by myself
and why set tcpkeeplive default to 1 when libcurl version >= 7.25.0
i also hope that min/max threads of the threadpool can be set at the outside project