We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0b7168 commit 1f3a732Copy full SHA for 1f3a732
connstate/poll_linux.go
@@ -32,6 +32,8 @@ type epoller struct {
32
func (p *epoller) wait() error {
33
events := make([]syscall.EpollEvent, 1024)
34
for {
35
+ // epoll wait is a blocking syscall, so we need to call entersyscallblock to handoff P,
36
+ // and let the P run other goroutines.
37
n, err := isyscall.EpollWait(p.epfd, events, -1)
38
if err != nil && err != syscall.EINTR {
39
return err
0 commit comments