cpr icon indicating copy to clipboard operation
cpr copied to clipboard

can cpr set keepalive writetimeout readtimeout when sending a post request?

Open carlwang99 opened this issue 1 year ago • 5 comments

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

carlwang99 avatar Jul 06 '24 08:07 carlwang99

and set tcp_nodelay_ to true is very important in our senario

carlwang99 avatar Jul 06 '24 08:07 carlwang99

or i need to implement the sessionparams setting myself?

carlwang99 avatar Jul 06 '24 08:07 carlwang99

@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.

COM8 avatar Jul 10 '24 07:07 COM8

i want to set TCP_NODELAY by myself image and why set tcpkeeplive default to 1 when libcurl version >= 7.25.0 image

carlwang99 avatar Jul 11 '24 02:07 carlwang99

i also hope that min/max threads of the threadpool can be set at the outside project

carlwang99 avatar Jul 11 '24 03:07 carlwang99