Progrider

Programming discussion

Search

Searches topics and replies. Every word has to appear in the post.

5 posts found.

PostPosted
Findings · post #2

Try-with-resources is one of the few things I'd bring with me if I had to leave Java.


by gcfail
Findings · post #1

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
Findings · post #3

No. Plenty don't. Python requests has no default timeout either. Always check.


by nils !PxNS1ZCy
Findings · post #2

Is that specific to Go? I'd assumed libraries set something sensible.


by sam
Findings · post #1

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
All times shown in UTC.