Skip to content

Commit

Permalink
Don't close listen fd anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
ithewei committed Mar 8, 2023
1 parent 0425810 commit be856ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion event/nio.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ static void nio_accept(hio_t* io) {

accept_error:
hloge("listenfd=%d accept error: %s:%d", io->fd, socket_strerror(io->error), io->error);
hio_close(io);
// NOTE: Don't close listen fd automatically anyway.
// hio_close(io);
}

static void nio_connect(hio_t* io) {
Expand Down

0 comments on commit be856ca

Please sign in to comment.