Progrider

Programming discussion

Search

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

11 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

Good. I didn't see anything.


by rproxy
Findings · post #2

So that's what that was. I'd "fixed" this in a script with verify=False last year. Going to go and undo that now.


by sam
Findings · post #1

Twice this month now. Site loads with a padlock in every browser, while curl and anything on Python fail with certificate verify errors: curl: (60) SSL certificate problem: unable to get local issuer certificate The server isn't sending the…


by rproxy
Help · post #3

Same as the Go thing from earlier. No default timeout, so always set one.


by nils !PxNS1ZCy
Help · post #2

No built-in option. AbortSignal.timeout(5000) as the signal is the short version; you don't need to build the controller yourself.


by Anonymous
Help · post #1

Node 22. Calling fetch against a sensor box that's powered off just sits there. No error, no timeout. Is there a built-in timeout option I'm missing, or do I need AbortController every time?


by Anonymous
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.