]> Cypherpunks repositories - gostls13.git/commit
syscall: treat ENFILE as a temporary error
authorLorenz Bauer <lmb@cloudflare.com>
Wed, 30 Oct 2019 11:30:57 +0000 (11:30 +0000)
committerIan Lance Taylor <iant@golang.org>
Wed, 30 Oct 2019 14:06:04 +0000 (14:06 +0000)
commit17190de08570d36dda9b2904609271354cc3c64a
treefb54bfb039f6811ae7a8e7825f3ea6b5f8453ff0
parentf4e32aeed18dadb077dc5458b03a812234390046
syscall: treat ENFILE as a temporary error

ENFILE is returned from accept when the whole system has run out of
file descriptors. Mark the error as temporary, so that accept loops
continue working.

Fixes #35131
Updates #1891

Change-Id: Idf44c084731898ff4c720d06c250d3b8a42de312
Reviewed-on: https://go-review.googlesource.com/c/go/+/203117
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/syscall_unix.go
src/syscall/syscall_unix_test.go