Skip to content

Commit e404c58

Browse files
committed
Immediately remove un-used sockets
1 parent e8c7ae8 commit e404c58

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/process.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6279,6 +6279,7 @@ static void event_new_fd(void *ctx)
62796279
* No one is using the socket. We can remove it now.
62806280
*/
62816281
this->status = RAD_LISTEN_STATUS_REMOVE_NOW;
6282+
goto remove_now;
62826283
} /* socket is at EOL */
62836284

62846285
/*
@@ -6295,6 +6296,7 @@ static void event_new_fd(void *ctx)
62956296
fr_event_fd_delete(el, 0, this->fd);
62966297
this->dead = true;
62976298

6299+
remove_now:
62986300
/*
62996301
* Re-open the socket, pointing it to /dev/null.
63006302
* This means that all writes proceed without

0 commit comments

Comments
 (0)