Comment

Comment by Groxx

The stdlib http client is a bit absurd in some areas, yeah. Timeouts in particular are so confusing and misleading that there are quite a few lengthy blog posts about them alone, e.g. https://blog.cloudflare.com/the-complete-guide-to-golang-net...

Granted, part of it is that it's too complex to be captured by one timeout, but everyone wants one timeout. kinda like string-sub-slicing and UTF-8 multi-byte characters - it's a Bad Idea™ because the over-simplified stuff is fundamentally wrong and will often cause problems. E.g. I routinely encounter tools with short timeouts that don't work on slow network connections (e.g. Bazel), despite actively downloading - what you generally want for user-use is a timeout that ensures the download does not hang forever doing nothing, not the download completes within a specific amount of time.

... but also it's just abnormally bad.

parent Groxx 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton