Bug #15488 MySqlException: Operation on non-blocking socket would block
Submitted: 5 Dec 2005 13:57 Modified: 5 Jan 2006 21:49
Reporter: Anthony Delosa Email Updates:
Status: No Feedback Impact on me:
None 
Category:Connector / NET Severity:S1 (Critical)
Version:1.0.7 OS:Linux (Linux (FC 4))
Assigned to: CPU Architecture:Any

[5 Dec 2005 13:57] Anthony Delosa
Description:
Receiving errors accessing pages that perform queries to MySQL DB (Version 4.1, InnoDB). Seems to work after a little while, then fails again...

Stack trace 
MySql.Data.MySqlClient.MySqlException: Operation on non-blocking socket would block ---> System.Net.Sockets.SocketException: Operation on non-blocking socket would block
in [0x0003c] (at /usr/src/redhat/BUILD/mono-1.1.8/mcs/class/System/System.Net.Sockets/Socket.cs:1359) System.Net.Sockets.Socket:Receive_nochecks (System.Byte[] buf, Int32 offset, Int32 size, SocketFlags flags)
in [0x00050] (at /usr/src/redhat/BUILD/mono-1.1.8/mcs/class/System/System.Net.Sockets/Socket.cs:1344) System.Net.Sockets.Socket:Receive (System.Byte[] buf, Int32 offset, Int32 size, SocketFlags flags)
in <0x00060> MySql.Data.Common.SocketStream:Read (System.Byte[] buffer, Int32 offset, Int32 count)--- End of inner exception stack trace ---

in <0x0010c> MySql.Data.Common.SocketStream:Read (System.Byte[] buffer, Int32 offset, Int32 count)
in [0x00160] (at /usr/src/redhat/BUILD/mono-1.1.8/mcs/class/corlib/System.IO/BufferedStream.cs:233) System.IO.BufferedStream:Read (System.Byte[] array, Int32 offset, Int32 count)
in [0x00011] (at /usr/src/redhat/BUILD/mono-1.1.8/mcs/class/corlib/System.IO/BufferedStream.cs:172) System.IO.BufferedStream:ReadByte ()
in <0x0004c> MySql.Data.MySqlClient.PacketReader:ReadHeader ()
in <0x000dc> MySql.Data.MySqlClient.PacketReader:OpenPacket ()
in <0x0033c> MySql.Data.MySqlClient.NativeDriver:Open ()
in <0x0004c> MySql.Data.MySqlClient.Driver:Create (MySql.Data.MySqlClient.MySqlConnectionString settings)
in <0x000d4> MySql.Data.MySqlClient.MySqlPool:CreateNewPooledConnection ()
in <0x0007c> MySql.Data.MySqlClient.MySqlPool:GetPooledConnection ()
in <0x00060> MySql.Data.MySqlClient.MySqlPool:GetConnection ()
in <0x00188> MySql.Data.MySqlClient.MySqlPoolManager:GetConnection (MySql.Data.MySqlClient.MySqlConnectionString settings)
in <0x00068> MySql.Data.MySqlClient.MySqlConnection:Open ()

How to repeat:
Seems to work perfect on Windows (.Net 1.1, Win XP) Only problem on Linux (FC4, Latest Mono build)
[5 Dec 2005 21:49] Vasily Kishkin
Could you please provide any test case to reproduce the bug ?
[6 Jan 2006 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".