[Mono-bugs] [Bug 381151] DataAdapter returns 0 rows after an SQL timeout occured

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 23 11:46:04 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=381151

User gert.driesen at pandora.be added comment
https://bugzilla.novell.com/show_bug.cgi?id=381151#c14





--- Comment #14 from Gert Driesen <gert.driesen at pandora.be>  2008-04-23 09:46:04 MST ---
I've now updated another repro that forces a lock, similar to what Mark
described, and which shows that the connection is no longer usable after the
timeout.

Running that repro, you'll get the following exception on Mono:

Unhandled Exception: System.IO.IOException: Read failure --->
System.Net.Sockets
SocketException: An established connection was aborted in your host machine.
  at System.Net.Sockets.Socket.Receive (System.Byte[] buf, Int32 offset, Int32
s
ize, SocketFlags flags) [0x00000]
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset,
Int32 size) [0x00000] --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset,
Int32 size) [0x00000]
  at Mono.Data.Tds.Protocol.TdsComm.GetPhysicalPacketHeader () [0x00000]
  at Mono.Data.Tds.Protocol.TdsComm.GetPhysicalPacket () [0x00000]
  at Mono.Data.Tds.Protocol.TdsComm.GetByte () [0x00000]
  at Mono.Data.Tds.Protocol.Tds.ProcessSubPacket () [0x00000]
  at Mono.Data.Tds.Protocol.Tds.NextResult () [0x00000]
  at System.Data.SqlClient.SqlDataReader.NextResult () [0x00000]
  at (wrapper remoting-invoke-with-check)
System.Data.SqlClient.SqlDataReader:Ne
xtResult ()
  at System.Data.SqlClient.SqlDataReader..ctor
(System.Data.SqlClient.SqlCommand
 command) [0x00000]
  at (wrapper remoting-invoke-with-check)
System.Data.SqlClient.SqlDataReader:.c
tor (System.Data.SqlClient.SqlCommand)
  at System.Data.SqlClient.SqlCommand.ExecuteReader (CommandBehavior behavior)
[
0x00000]
  at System.Data.SqlClient.SqlCommand.ExecuteReader () [0x00000]
  at (wrapper remoting-invoke-with-check)
System.Data.SqlClient.SqlCommand:Execu
teReader ()
  at Program.RunTest (System.Data.SqlClient.SqlConnection conn) [0x00000]
  at Program.Main () [0x00000]


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list