Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
relay: Fix race between connection close and new call
Currently, relay items are added without checking the connection state. This can lead to new items being added while a connection is closing. This change makes checking the connection state atomic with incrementing the pending count. This ensures that only active connections can accept new incoming calls.
- Loading branch information
Showing
3 changed files
with
101 additions
and
8 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