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

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

Merged
merged 1 commit into from
Apr 27, 2017

Conversation

corivera
Copy link
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
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
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.

Copy link
Contributor

@saurabh500 saurabh500 left a comment

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