]> Cypherpunks repositories - gostls13.git/commit
os: only add file descriptors which are set to non-blocking mode to the netpoller
authorYuval Pavel Zholkover <paulzhol@gmail.com>
Sat, 30 Jul 2022 17:41:58 +0000 (20:41 +0300)
committerGopher Robot <gobot@golang.org>
Thu, 18 Aug 2022 03:12:27 +0000 (03:12 +0000)
commitb15c399a36a38509ae56dd69670974566f7b0d52
treedcb367507883701e943051b1202e2688020318ab
parent0816d3871376f8fe029db1a6d00b1f6882106043
os: only add file descriptors which are set to non-blocking mode to the netpoller

Either ones where kind == kindNonBlock or those we've successfully called syscall.SetNonblock() on.
Restore blocking behavior if we detect an error registering with the netpoller and our flow was
successful in setting the inital syscall.SetNonblock().

Update #54100

Change-Id: I08934e4107c7fb36c15a7ca23ac880490b4df235
Reviewed-on: https://go-review.googlesource.com/c/go/+/420334
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Goutnik <dgoutnik@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Yuval Pavel Zholkover <paulzhol@gmail.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
src/os/file_unix.go