Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED] Fail faster subscription requests for invalid clients
When the server detects that a client is not responding to heartbeats, it closes it, however, this was done with a barrier that ensures that all pending protocols on all internal subscriptions are first processed. In the case of this close (as opposed to processing a client close request), this is not welcome because it may causes the server to process lots of subscription requests that were sent by that client - maybe in response to timeouts for a server already having issues handling the load. The server will now forcefully close the client (without the use of the barrier) and the detection of an invalid client is done sooner in the handling of the subscription request. Also, the internal subscription for client subscription requests has been reverted to be limited (with possibly dropping requests). Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
- Loading branch information
Showing
4 changed files
with
136 additions
and
31 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
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