MySQL: Received an unexpected EOF or 0 bytes from the transport stream

0

I get the error below from an application I am running. I only have access to log, but not to the code.

Several SQL queries are returning results as expected then all of a sudden I see this error. Any idea what may be happening? I would have expected no queries to have completed if there was an issue with SSL. But it only happens after a few queries have finished execution and returned results.

The calling function is MySql.Data.MySqlClient.MySqlDataReader.Read()

   MySql.Data.MySqlClient.MySqlException (0x80004005): Reading from the stream has failed. 
    System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream. 
       at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
       at System.Net.Security._SslStream.StartFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslStream.Read(Byte[] buffer, Int32 offset, Int32 count)
       at MySql.Data.MySqlClient.TimedStream.Read(Byte[] buffer, Int32 offset, Int32 count)
mysql
ssl
mysqldatareader
asked on Stack Overflow Nov 18, 2019 by david • edited Nov 18, 2019 by david

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0