]> Cypherpunks repositories - gostls13.git/commit
net/http: Set a timeout on Request.Context when using TimeoutHandler
authorMichael Fraenkel <michael.fraenkel@gmail.com>
Thu, 22 Jun 2017 01:58:42 +0000 (21:58 -0400)
committerTom Bergan <tombergan@google.com>
Mon, 28 Aug 2017 17:46:28 +0000 (17:46 +0000)
commit9e7b30b463bf6834f9ff01a33b60508984c47d20
treed0015608d6de5324f0e7f6ea5586b26724dd03ff
parent2b079c3c04b747451d70861451186cda4b1f935a
net/http: Set a timeout on Request.Context when using TimeoutHandler

In TimeoutHandler, use a request whose context has been configured with
the handler's timeout

Fixes #20712

Change-Id: Ie670148f85fdad46841ff29232042309e15665ae
Reviewed-on: https://go-review.googlesource.com/46412
Run-TryBot: Tom Bergan <tombergan@google.com>
Reviewed-by: Tom Bergan <tombergan@google.com>
src/net/http/export_test.go
src/net/http/server.go