Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Port Disabling Managed SNI to 2.0 release #19105

Merged
merged 1 commit into from
Apr 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ internal sealed class TdsParserStateObjectFactory

public static readonly TdsParserStateObjectFactory Singleton = new TdsParserStateObjectFactory();

private static bool shouldUseLegacyNetorking;

// If The appcontext switch is set then Use Managed SNI based on the value. Otherwise Managed SNI should always be used.
public static bool UseManagedSNI { get; } = AppContext.TryGetSwitch(UseLegacyNetworkingOnWindows, out shouldUseLegacyNetorking) ? !shouldUseLegacyNetorking : true;
// Temporary disabling App Context switching for managed SNI.
// If the appcontext switch is set then Use Managed SNI based on the value. Otherwise Managed SNI should always be used.
//private static bool shouldUseLegacyNetorking;
//public static bool UseManagedSNI { get; } = AppContext.TryGetSwitch(UseLegacyNetworkingOnWindows, out shouldUseLegacyNetorking) ? !shouldUseLegacyNetorking : true;

public static bool UseManagedSNI { get; } = false;

public EncryptionOptions EncryptionOptions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void IndependentConnectionExceptionTestExecuteReader()
}
}

[ActiveIssue(17373)]
[ActiveIssue(19057)]
[Theory]
[InlineData(@"np:\\.\pipe\sqlbad\query")]
[InlineData(@"np:\\.\pipe\MSSQL$NonExistentInstance\sql\query")]
Expand Down