forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak SslApplicationProtocol (dotnet/corefx#36021)
* Tweak SslApplicationProtocol - It currently stores a `ReadOnlyMemory<byte>`. That just adds unnecessary expense: we can instead just store the provided `byte[]`. - The most common values are those exposed statically: Http2 and Http11, but ToString on those results in creating a new string each time. Special-case them. - Constructing an SslApplicationProtocol with a null string results in an ArgumentNullException being thrown with the wrong parameter name. Fix it. - Miscellaneous cleanup on the file. * Address PR feedback Commit migrated from dotnet/corefx@af6e226
- Loading branch information
1 parent
c31730d
commit 22435bc
Showing
3 changed files
with
65 additions
and
95 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