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

Commit 3ccdcb1

Browse files
authored
Add LongRunning option to managed SNI async reads (#19739)
1 parent be07e44 commit 3ccdcb1

File tree

1 file changed

+1
-1
lines changed
  • src/System.Data.SqlClient/src/System/Data/SqlClient/SNI

1 file changed

+1
-1
lines changed

src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SNIPacket.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public void ReadFromStreamAsync(Stream stream, SNIAsyncCallback callback)
267267
callback(this, error ? TdsEnums.SNI_ERROR : TdsEnums.SNI_SUCCESS);
268268
},
269269
CancellationToken.None,
270-
TaskContinuationOptions.DenyChildAttach,
270+
TaskContinuationOptions.DenyChildAttach | TaskContinuationOptions.LongRunning,
271271
TaskScheduler.Default);
272272
}
273273

0 commit comments

Comments
 (0)