SQLitening Support Forum

SQLitening Support => You've got Questions? We've got Answers! => Topic started by: Fim on December 05, 2017, 09:53:01 AM

Title: Keeping a conntection client-server alive
Post by: Fim on December 05, 2017, 09:53:01 AM
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.
Title: Re: Keeping a conntection client-server alive
Post by: cj on December 06, 2017, 12:27:10 AM
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.
Title: Re: Keeping a conntection client-server alive
Post by: Fim on December 06, 2017, 04:10:11 AM
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.
Title: Re: Keeping a conntection client-server alive
Post by: cj on December 06, 2017, 09:08:07 AM
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.   
















Title: Re: Keeping a conntection client-server alive
Post by: Fim on December 06, 2017, 10:08:43 AM
Cj,
Thank you for the clarification.