-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: If `handleError` is invoked with a supplied `AlertDescription`, it will attempt to use the current write record layer to encode an alert to be sent to the peer. The write record layer `write()` may throw. This is problematic since `handleError` can be invoked itself in the catch handler (e.g. during `processSocketData`). Uncaught exceptions will then propagate out of the state machine into the I/O layer, which may be invoked under a noexcept context. This diff catches exceptions that may be thrown by the write record layer during `handleError`, skipping writing the alert if one is thrown. Reviewed By: knekritz Differential Revision: D66526269 fbshipit-source-id: 2e0ebb91767d3543d5f0aa10eaeff3e38ba821a2
- Loading branch information
1 parent
277ad96
commit 1273ae3
Showing
4 changed files
with
57 additions
and
14 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