forked from ofiwg/libfabric
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tcp provider: Early remove ep from polling after shutdown
I noticed that the polling thread in our applicatioon is spinning for some time after calling fi_shutdown(). Reason is that we only call fi_close() after all references to our internal connection handling are dropped and that can be much later than the call of fi_close() and the FI_SHUTDOWN event handling. Our polling thread then started to spin without ever going to sleep. The solution here is to remove the endpoint from polling after the TCPX_EP_SHUTDOWN flag is set and only after another round of polling in tcpx_progress() - similar to what the socket provider does. Change-Id: I66ea20bf344ae8f74a67532657d0e1d199638391 Signed-off-by: Bernd Schubert <[email protected]>
- Loading branch information
Showing
3 changed files
with
44 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
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