Skip to content

Commit

Permalink
bug: fix the EEXIST of epoll_ctl in eventloop.open
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Apr 14, 2024
1 parent b3ded75 commit 7e51413
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 {

Check warning on line 103 in eventloop_unix.go

View check run for this annotation

Codecov / codecov/patch

eventloop_unix.go#L103

Added line #L103 was not covered by tests
return err
}
}
Expand Down

0 comments on commit 7e51413

Please sign in to comment.