mirror of
https://github.com/golang/net.git
synced 2026-03-31 10:27:08 +09:00
The Go 1.4 (and earlier) support for request cancellation is racy and complicates the implementation of ctxhttp. This change simply inlines the existing 1.5+ cancellation logic directly, and removes support for older versions. Change-Id: I7df9f0648dd0e571366374d079e2976050464ca3 Reviewed-on: https://go-review.googlesource.com/22302 Reviewed-by: David Symonds <dsymonds@golang.org> Run-TryBot: David Symonds <dsymonds@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>