-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: Handle context termination for pending callbacks. (#55)
Prior to this change, calls pushed from the server to the client would ignore the context passed to the Callback method. This meant that if the client did not reply (for example, the client has no support for push calls), the callback would block forever. This change makes pending callbacks on the server respect the context that was passed to the Callback method: When it ends, if the call has not yet received a response, it is delivered an error from the context and resolved. Update the documentation on Callback to recommend setting a timeout or deadline on the context, in cases where the client might not reply.
- Loading branch information
1 parent
f204dde
commit 7c55216
Showing
2 changed files
with
55 additions
and
2 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