From 7e51413c0caa16d786f43458e6fd1e9f35ce35ef Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sun, 14 Apr 2024 09:51:48 +0800 Subject: [PATCH] bug: fix the EEXIST of epoll_ctl in eventloop.open --- eventloop_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eventloop_unix.go b/eventloop_unix.go index f3082f14f..e8c8eab92 100644 --- a/eventloop_unix.go +++ b/eventloop_unix.go @@ -100,7 +100,7 @@ func (el *eventloop) open(c *conn) error { } if !c.outboundBuffer.IsEmpty() { - if err := el.poller.AddWrite(&c.pollAttachment); err != nil { + if err := el.poller.ModReadWrite(&c.pollAttachment); err != nil { return err } }