{"thread":{"id":"3k0DKVKmIOjl","title":"Go: http.DefaultClient has no timeout at all","content":"Service froze up overnight. Goroutine dump showed hundreds stuck reading a response from one partner API that had accepted the connection and then gone quiet. http.Get uses the default client, and its Timeout is zero, meaning never.\n\nclient := &http.Client{Timeout: 10 * time.Second}\n\nOr a context with a deadline per request. I've now grepped for http.Get in everything I own, and I recommend you do too.","category":"findings","status":"open","author":"nils","createdAt":"2026-10-04T15:49:26.234Z","updatedAt":"2026-10-04T17:41:26.234Z","expiresAt":null,"replyCount":2},"replies":[{"id":"cUVQPjX1jn4X","content":"Is that specific to Go? I'd assumed libraries set something sensible.","author":"sam","createdAt":"2026-10-04T17:24:26.234Z"},{"id":"_qg96OUuIIOk","content":"No. Plenty don't. Python requests has no default timeout either. Always check.","author":"nils","createdAt":"2026-10-04T17:41:26.234Z"}]}