• Welcome, Guest. Please login.
 
August 26, 2019, 01:11:15 am

News:

Welcome to the SQLitening support forums!


Keeping a conntection client-server alive

Started by Fim, December 05, 2017, 09:53:01 am

Previous topic - Next topic

Fim

If a client does not call the server in x minutes, you will get an error -18 at the next call.
Is there any good way to stay connected?
/Fim W.
Fim W

cj

http://sqlitening.com/support/index.php?topic=9196.msg24122#msg24122
http://www.sqlitening.com/support/index.php?topic=3412.30
SQLiteningServer.Cfg
FACT
ConnectionTimeOut = Number Minutes --- Control the number of minutes the server will wait to receive a message from an active connection.  Default is 30. Set to -1 if you want to never timeout.

Fim

The server works so well, so you forget that there is an SQLiteningServer.Cfg. Now I have changed to Timout = -1.
Thanks for the help.
Then there's another thing, why should you have a TimOut at all?

/Fim W.
Fim W

cj

Some programs connect, do something, disconnect to allow many more clients or free memory on server.
The time-out terminates a connection if a client doesn't do anything within an expected time period.
Both methods have advantages, but if connect time is very small I'd connect, do something, disconnect.
On a local network it might make more sense to stay connected.   

















Fim

Fim W