Re:Convert curl commands to code in several languages
by beranabus on Friday March 11, 2022 @12:50PM
(#30643373)
The go version seems to be missing timeouts. There is none by default and the --connect-timeout flag is not setting one either.
[ Parent
| on HN ]
Re:Convert curl commands to code in several languages
by chockchocschoir on Friday March 11, 2022 @07:19PM
(#30647754)
Rightly so. Unless you specify `--max-time` in your cURL invocation, all the examples should be missing timeouts, as cURL by default doesn't have any timeouts, only if you specify `--max-time N`.