Join GitHub today
net/http: request context is not propagating deadlines #19562
Consider the following program:
The output of this program is:
Instead, I expected to see a non-zero deadline and "done" written to the response body after 5 seconds.
Any plans to inject the deadline in a preserved header to the outgoing requests, so the handler can automatically extract them and construct the incoming request context from there.