WSAGetLastError return 10054($2746)

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
pedja2
Posts: 29
Joined: Thu 04 Jun 2009 11:11

WSAGetLastError return 10054($2746)

Post by pedja2 » Wed 11 Nov 2009 14:29

Hello there,

I am using mydac 5.90.0.52 in our application and some of our customers getting a few times per day error:

Lost connection to MySQL server during query. Socket error on write.
WSAGetLastError return 10054($2746)

Mysql version is 4.1.11
Variable net_write_timeout =300 , 5 minutes must be enough

What this means and could bu suppressed of solved?

Thanks.
Pedja

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 12 Nov 2009 11:06

This problem can be arised when connection break occurs, for example in an unstable network.
To solve the problem try to set the TMyConnection.Options.LocalFailover property to True. You can find more detailed information about this in the "Working in an unstable network" topic of MyDAC Help.

Post Reply