From ea8b0acdac0c542a5cd9249861ddc1c43e9c71ba Mon Sep 17 00:00:00 2001 From: Damien Neil Date: Wed, 31 Jul 2019 13:13:39 -0700 Subject: all: remove os.ErrTemporary As discussed in https://github.com/golang/go/issues/32463#issuecomment-506833421 the classification of deadline-based timeouts as "temporary" errors is a historical accident. I/O timeouts used to be duration-based, so they really were temporary--retrying a timed-out operation could succeed. Now that they're deadline-based, timeouts aren't temporary unless you reset the deadline. Drop ErrTemporary from Go 1.13, since its definition is wrong. We'll consider putting it back in Go 1.14 with a clear definition and deprecate net.OpError.Temporary. Fixes #32463 Change-Id: I70cda664590d8872541e17409a5780da76920891 Reviewed-on: https://go-review.googlesource.com/c/go/+/188398 Reviewed-by: Jonathan Amsterdam --- api/go1.13.txt | 1 - 1 file changed, 1 deletion(-) (limited to 'api') diff --git a/api/go1.13.txt b/api/go1.13.txt index 16f11cf2b7..a8e39ce8ea 100644 --- a/api/go1.13.txt +++ b/api/go1.13.txt @@ -237,7 +237,6 @@ pkg os (netbsd-arm64), const O_SYNC = 128 pkg os (netbsd-arm64), const O_TRUNC = 1024 pkg os (netbsd-arm64), const PathListSeparator = 58 pkg os (netbsd-arm64), const PathSeparator = 47 -pkg os, var ErrTemporary error pkg os, var ErrTimeout error pkg path/filepath (netbsd-arm64-cgo), const ListSeparator = 58 pkg path/filepath (netbsd-arm64-cgo), const Separator = 47 -- cgit v1.2.3