http.Client with no timeout hanging forever in production
We had an incident where a service hung for 20 minutes because an outbound http.Client{} had no timeout and the remote server just stopped responding. Go 1.22. I know I need to set a Timeout, but I also see people set Transport-level timeouts. What's the difference and what should I actually configure? Not sure what else to try at this point.
4 replies