c# - Timeout occurs while executing MySqlDataReader::Read() -


i following exception while calling read() on mysqldatareader object.

using (mysqlconnection con = new mysqlconnection(myconnectionstring)) {      con.open();      using (mysqlcommand command = con.createcommand())      {          command.commandtext = string.format("select id mytable id in ({0})", idlist.tostring());          mysqldatareader reader = command.executereader();          while (reader.read())          {              int id = int32.parse(reader["id"].tostring());              if (!idhashset.contains(id))              {                  idhashset.add(id);              }                                   }     } } 

the program seems freeze 8 hours, , spits out following exception , stack trace.

timeout can set 'system.threading.timeout.infinite' or value > 0. parameter name: value    system.net.sockets.networkstream.set_readtimeout(int32 value)    mysql.data.mysqlclient.timedstream.starttimer(iokind op)    mysql.data.mysqlclient.timedstream.read(byte[] buffer, int32 offset, int32 count)    system.io.bufferedstream.read(byte[] array, int32 offset, int32 count)    mysql.data.mysqlclient.mysqlstream.readfully(stream stream, byte[] buffer, int32 offset, int32 count)    mysql.data.mysqlclient.mysqlstream.loadpacket()    mysql.data.mysqlclient.mysqlstream.readpacket()    mysql.data.mysqlclient.nativedriver.fetchdatarow(int32 statementid, int32 columns)    mysql.data.mysqlclient.resultset.nextrow(commandbehavior behavior)    mysql.data.mysqlclient.mysqldatareader.read() 

the same error occurring @ different section of code around same time, reads different table different server, inclined think problem exists on client side. suggestions?

could bug here: https://bugs.mysql.com/bug.php?id=75604

if environment.tickcount rolls on (after 24.9 days of server uptime) whilst you're executing command connector throw exact exception seeing.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -