Skip to content

Commit

Permalink
bug: fix the EEXIST of epoll_ctl in eventloop.open (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 authored Apr 14, 2024
1 parent b3ded75 commit 601bfdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eventloop_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 601bfdf

Please sign in to comment.