Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Add Async flag to SqlClient NamedPipes' PipeStream to resolve an issue with connection hangs while using MARS over NP. - #19022

Merged
Petermarcu merged 1 commit into
dotnet:masterfrom
corivera:FixLocalDbMars
Apr 27, 2017
Merged

Add Async flag to SqlClient NamedPipes' PipeStream to resolve an issue with connection hangs while using MARS over NP.#19022
Petermarcu merged 1 commit into
dotnet:masterfrom
corivera:FixLocalDbMars

Conversation

@corivera

Copy link
Copy Markdown
Member

Needed to add an Async flag to the NP PipeStream options. Without the async option, connection.Open() hangs forever while waiting on a sync write for sending the MARS SYN packet.

…e with connection hangs while using MARS over NP.
serverName,
pipeName,
PipeDirection.InOut,
PipeOptions.Asynchronous | PipeOptions.WriteThrough);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove the TokenImpersonationLevel?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figured that a None impersonation is the default.

@saurabh500 saurabh500 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@Petermarcu
Petermarcu merged commit 9c668c8 into dotnet:master Apr 27, 2017
Petermarcu added a commit that referenced this pull request Apr 27, 2017
…e with connection hangs while using MARS over NP. (#19022) (#19035)
@karelz karelz modified the milestone: 2.0.0 Apr 28, 2017
@corivera
corivera deleted the FixLocalDbMars branch May 1, 2017 23:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants