Blog107.2K views4,037 votes0 replies3,795 following
Why Your Go HTTP Handlers Should Carry Their Own Deadline
Go handlers that outlive their clients leak goroutines and connections. context.WithTimeout bounds the damage — if you propagate it correctly and pick the deadline from real latency data.