-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EventEngine] Update contract for Listener's on_shutdown execution (#…
…33003) See `event_engine.h` for the contract change. All other changes are cleanup. I confirmed that both the Posix and Windows implementations comply with this already. On Windows, the `WindowsEventEngineListener` will only call `on_shutdown` after all `SinglePortSocketListener`s have been destroyed, which ensures that no `on_accept` callback will be executed, even if there is still trailing overlapped activity on the listening socket. On Posix, the `PosixEngineListenerImpl` will only call `on_shutdown` after all `AsyncConnectionAcceptor`s have been destroyed, which ensures `EventHandle::OrphanHandle` has been called. The `OrphanHandle` contract indicates that all existing notify closures must have already run. The implementation looks to comply, so if it does not, that's a bug. https://github.com/grpc/grpc/blob/3aae08d25e69af36445de7618072d708d839642d/src/core/lib/event_engine/posix_engine/event_poller.h#L48-L50
- Loading branch information
Showing
3 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters