I am running several scripts to post and retrieve data using the httr
package.
Occasionally, one of the jobs will just stall and never complete. This causes problems when other scripts assume that this script has completed.
The stalling is due to some error on the server on the other end.
Is it, therefore, possible to specify a maximal waiting time for a POST/GET request?
I have looked at the documentation and found the httr::timeout()
function. It passes arguments to curl::setopt()
, and supposedly answers my question.
However, when I look at the curl option for timeout I find:
> curl::curl_options("^timeout$")
> timeout
> 13
And this is not what I am experiencing in practice? What Am I missing?