-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python grpc server doesn't have an easy way to check whether a client is dropped or not. This makes it hard to manage endpoint in the flame channel concept and hence can cause deadlock situations where an endpoint (working as grpc server) waits for data to arrive from an endpoint which is dropped. As a workaround, a heart beat is sent periodically; if it is not received for a certain duration, it is assumed that the client is dropped. The grpc server cleans up resources allocated for the endpoint, which prevents deadlock.
- Loading branch information
Showing
1 changed file
with
104 additions
and
36 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