You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on the binary read benchmark in #593 (comment) I tried the code below expecting the behaviour to be fast and found that it simply blocks indefinitely.
usingvarconn=newSqlConnection(ConnectionString);usingvarcmd=newSqlCommand("SELECT foo FROM data",conn);awaitconn.OpenAsync();usingvarreader=awaitcmd.ExecuteReaderAsync(System.Data.CommandBehavior.SequentialAccess);awaitreader.ReadAsync();usingvarstream=reader.GetStream(0);usingvarmemory=newMemoryStream(16*1024);awaitstream.CopyToAsync(memory);return(int)memory.Length;
This should work but freezes in a task wait after a single read cycle, the second read never completed. If you change it to standard mode it'll work but it does so by fetching the entire field and giving you a reader over the byte[]. So no workaround, this needs fixing if the team agree that it's a bug.
Edit: for clarity the problem is when multiple packets are needed. The current tests read from a single packet and thus do not do a network read.
The text was updated successfully, but these errors were encountered:
Adding note: This issue is not reproducible in NetFx driver (for .NET Framework) so it should be investigated since when this issue has started to occur for .NET Core applications.
Based on the binary read benchmark in #593 (comment) I tried the code below expecting the behaviour to be fast and found that it simply blocks indefinitely.
This should work but freezes in a task wait after a single read cycle, the second read never completed. If you change it to standard mode it'll work but it does so by fetching the entire field and giving you a reader over the byte[]. So no workaround, this needs fixing if the team agree that it's a bug.
Edit: for clarity the problem is when multiple packets are needed. The current tests read from a single packet and thus do not do a network read.
The text was updated successfully, but these errors were encountered: