I get the message 'Lost connection to MySql server during query, Socket error on write, WSAGetLastError return 10053($2745)'
As workaround I installed a timer, making a select call in TUniQuery every 50 secs.
Any recommandation for better solution ?
Any settings on TUniConnection so be made ?
(I can't acces CrLab-help, see other thread)
Remote MySql-Server, timeout problem when no action for more than 60 secs
-
- Posts: 387
- Joined: Fri 18 Nov 2005 00:26
- Location: Brazil
Re: Remote MySql-Server, timeout problem when no action for more than 60 secs
In TUniConnection.Options set LocalFailOver = Truepebogufi wrote:I get the message 'Lost connection to MySql server during query, Socket error on write, WSAGetLastError return 10053($2745)'
As workaround I installed a timer, making a select call in TUniQuery every 50 secs.
Any recommandation for better solution ?
Any settings on TUniConnection so be made ?
(I can't acces CrLab-help, see other thread)
in event OnConnectionLost put the code
Code: Select all
RetryMode := rmReconnectExecute;
when possible see Unidac Help About LocalFailOver and DisconnectedModel.
problem solved.
thank's CoreLab for LocalFailOver and DisconnectedModel