Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
socket: fix potential double close (#2663)
`_fd` should be reset if `ResetFileDescriptor` is going to return -1, otherwise the fd will be closed in callers like `CheckConnectedAndKeepWrite` or `Server::StartInernal` and socket lifecycle methods like `BeforeRecycled` or `WaitAndReset`.
- Loading branch information