From 601bfdf18428aa05845ab5008b30f1c4f62184ae Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sun, 14 Apr 2024 10:12:11 +0800 Subject: [PATCH] bug: fix the EEXIST of epoll_ctl in eventloop.open (#572) --- 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 } }