Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: possible race condition during graceful shutdown (#780)
This PR just makes the behavior more reliable, also should address #661 The possible race condition: - `notify_waiters()` will notify only already registered waiters Thus, if it's called after ```rust drop(acceptor); if alive_connections.load(Ordering::Acquire) > 0 { ``` But before `notify.notified()` - it might be never notified.
- Loading branch information