Search
Searches topics and replies. Every word has to appear in the post.
5 posts found.
| Post | Posted |
|---|---|
Try-with-resources is one of the few things I'd bring with me if I had to leave Java. | by gcfail |
Same service as my timeout post, because I evidently learn one lesson at a time. pprof showed a steady climb of readLoop and writeLoop goroutines. That's two per open connection. Any path that returned early without resp.Body.Close() kept t… | by nils !PxNS1ZCy |
No. Plenty don't. Python requests has no default timeout either. Always check. | by nils !PxNS1ZCy |
Is that specific to Go? I'd assumed libraries set something sensible. | by sam |
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. client … | by nils !PxNS1ZCy |