-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StreamSocket::checkRemoval: Signal shutdown only if appropriate, allo…
…wing to drain bytes instead of hard disconnect Signal shutdown only if appropriate, allowing to drain bytes instead of hard disconnect. Only in case of SigUtil::getTerminationFlag(), we force disconnection. SocketPoll::poll() hence checks isClosed() after checkRemoval() for forced Socket removal. A pending signaled shutdown may occure via handlePoll() after processing more I/O data. Further, remove useless setClosed() in checkRemoval() after asserting !isOpen(). Signed-off-by: Sven Göthel <[email protected]> Change-Id: I4e3ba962880b77017443236bc33b03ed20dcdd34
- Loading branch information
Sven Göthel
committed
Oct 25, 2024
1 parent
105e6ea
commit f81ec5c
Showing
2 changed files
with
24 additions
and
15 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