Optimize SqlClient tds state to remove handle boxing by Wraith2 · Pull Request #34044 · dotnet/corefx (original) (raw)

It's a manual test, stack trace is:

  unexpected readPacket without corresponding SNIPacketRelease

     at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync() in E:\Programming\csharp7\corefx\src\System.Data.SqlClient\src\System\Data\SqlClient\TdsParserStateObject.cs:line 2111
     at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket() in E:\Programming\csharp7\corefx\src\System.Data.SqlClient\src\System\Data\SqlClient\TdsParserStateObject.cs:line 2038
     at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer() in E:\Programming\csharp7\corefx\src\System.Data.SqlClient\src\System\Data\SqlClient\TdsParserStateObject.cs:line 1083
     at System.Data.SqlClient.TdsParserStateObject.TryReadByteArray(Span`1 buff, Int32 len, Int32& totalRead) in E:\Programming\csharp7\corefx\src\System.Data.SqlClient\src\System\Data\SqlClient\TdsParserStateObject.cs:line 1279
     at System.Data.SqlClient.TdsParserStateObject.TryReadPlpBytes(Byte[]& buff, Int32 offset, Int32 len, Int32& totalBytesRead) in E:\Programming\csharp7\corefx\src\System.Data.SqlClient\src\System\Data\SqlClient\TdsParserStateObject.cs:line 1916
     at System.Data.SqlClient.TdsParser.TryReadSqlValue(SqlBuffer value, SqlMetaDataPriv md, Int32 length, TdsParserStateObject stateObj) in E:\Programming\csharp7\corefx\src\System.Data.SqlClient\src\System\Data\SqlClient\TdsParser.cs:line 4512
     at System.Data.SqlClient.SqlDataReader.TryReadColumnInternal(Int32 i, Boolean readHeaderOnly) in E:\Programming\csharp7\corefx\src\System.Data.SqlClient\src\System\Data\SqlClient\SqlDataReader.cs:line 3417
     at System.Data.SqlClient.SqlDataReader.TryReadColumn(Int32 i, Boolean setTimeout, Boolean allowPartiallyReadColumn) in E:\Programming\csharp7\corefx\src\System.Data.SqlClient\src\System\Data\SqlClient\SqlDataReader.cs:line 3270
     at System.Data.SqlClient.SqlDataReader.GetValueInternal(Int32 i) in E:\Programming\csharp7\corefx\src\System.Data.SqlClient\src\System\Data\SqlClient\SqlDataReader.cs:line 2513
     at System.Data.SqlClient.SqlDataReader.GetValue(Int32 i) in E:\Programming\csharp7\corefx\src\System.Data.SqlClient\src\System\Data\SqlClient\SqlDataReader.cs:line 2455
     at System.Data.SqlClient.ManualTesting.Tests.CommandCancelTest.<>c__DisplayClass18_0.<TimeOutDuringRead>b__0() in E:\Programming\csharp7\corefx\src\System.Data.SqlClient\tests\ManualTests\SQL\CommandCancelTest\CommandCancelTest.cs:line 262