]> Cypherpunks repositories - gostls13.git/commit
context: make DeadlineExceeded implement net.Error
authorRuss Cox <rsc@golang.org>
Wed, 5 Oct 2016 03:58:42 +0000 (23:58 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 5 Oct 2016 15:53:04 +0000 (15:53 +0000)
commitf69991c17d9dea88e927643e4b7fdc43ad789ac3
treefb2ff97d336f4c32067de45e169f568f72bddf82
parentfb4f4f4e96058165c0e7be32aa9ce493515c22a3
context: make DeadlineExceeded implement net.Error

It already implemented the Timeout method,
but implementing the full net.Error is more convenient.

Fixes #14238 (again).

Change-Id: Ia87f897f0f35bcb49865e2355964049227951ca6
Reviewed-on: https://go-review.googlesource.com/30370
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/context/context.go
src/context/net_test.go [new file with mode: 0644]