forked from opentok/Opentok-.NET-SDK
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better handle WebExceptions that don't have a Response and send a cus…
…tomized exception on WebExceptionStatus.SendFailure errors (usually from TLS errors). Fixes opentok#108.
- Loading branch information
Showing
1 changed file
with
14 additions
and
7 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 implements the "Handle send failures errors and throw exception with meaningful message" part but not the "
Include recommendation regarding TLS upgrade into exception message" part. Perhaps add this string: "Consider adding System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; before creating a session."