]> Cypherpunks repositories - gostls13.git/commit
runtime: on unexpected netpoll error, throw instead of looping
authorIan Lance Taylor <iant@golang.org>
Fri, 10 Jul 2015 22:28:01 +0000 (15:28 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 15 Sep 2015 17:56:56 +0000 (17:56 +0000)
commitb6d115a583c42cb086de408471dc943ff6704cfb
tree335efd46e0452be4ac1542ad75492ad7757d4e8c
parent731bdc51157fd7f685fb73c298e97922318ac453
runtime: on unexpected netpoll error, throw instead of looping

The current code prints an error message and then tries to carry on.
This is not helpful for Go users: they see a message that means
nothing and that they can do nothing about.  In the only known case of
this message, in issue 11498, the best guess is that the netpoll code
went into an infinite loop.  Instead of doing that, crash the program.

Fixes #11498.

Change-Id: Idda3456c5b708f0df6a6b56c5bb4e796bbc39d7c
Reviewed-on: https://go-review.googlesource.com/12047
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
src/runtime/netpoll_epoll.go
src/runtime/netpoll_kqueue.go
src/runtime/netpoll_solaris.go