Page 1 of 1
Session auto removed after about 1 minute of user inactivity when using a web service vpn connection
Posted: 02 Oct 2024, 08:54
by dekii
Session auto removed after about 1 minute of user inactivity when using a web service vpn connection
i only got this problem when client using connection ws with vpn, when turn off vpn it's not. i had config Session maximum idle time to 999 and
User maximum idle time to 9999 and Overridden user maximum idle time to 9999. I user sfs2x version
Re: Session auto removed after about 1 minute of user inactivity when using a web service vpn connection
Posted: 02 Oct 2024, 09:27
by Lapo
Hi,
the server never disconnects a client before the timeout, however a client
can disconnect from it's side, for example when there are network issues, slowness, congestion etc...
It is highly likely that the VPN is causing the disconnection. A way to mitigate this issue is to send small packets every few seconds to keep the connection alive.
The client API provide a
LagMonitor utility that sends ping requests every few seconds, to measure the latency with the server. You can turn it on from the client side and use this feature as a keep-alive mechanism.
For example in C# you can do this:
where sfs is an instance of the SmartFox class.
The same can be done in the other supported languages.
Cheers
Re: Session auto removed after about 1 minute of user inactivity when using a web service vpn connection
Posted: 02 Oct 2024, 10:01
by dekii
Lapo wrote:Hi,
the server never disconnects a client before the timeout, however a client
can disconnect from it's side, for example when there are network issues, slowness, congestion etc...
It is highly likely that the VPN is causing the disconnection. A way to mitigate this issue is to send small packets every few seconds to keep the connection alive.
The client API provide a
LagMonitor utility that sends ping requests every few seconds, to measure the latency with the server. You can turn it on from the client side and use this feature as a keep-alive mechanism.
For example in C# you can do this:
where sfs is an instance of the SmartFox class.
The same can be done in the other supported languages.
Cheers
Thanks for your reply, I just discovered that the port was disconnected right after the user joined the zone , and then connection lost maybe because limit reconnect failse. and i see a case is with another vpn, i cant connect. Maybe because vpn, i has no idea
Re: Session auto removed after about 1 minute of user inactivity when using a web service vpn connection
Posted: 05 Oct 2024, 02:45
by dekii
Is anyone having the same vpn connection problem as me? The problem is still not resolved

Re: Session auto removed after about 1 minute of user inactivity when using a web service vpn connection
Posted: 07 Oct 2024, 06:43
by Lapo
For further testing, I have checked the the IP address you have show in your screenshots and it works correctly. We can reach the websocket port and connect, also from a VPN.
This seems to confirm the hypothesis that the issue is the VPN you're using.
Cheers
Re: Session auto removed after about 1 minute of user inactivity when using a web service vpn connection
Posted: 08 Oct 2024, 06:48
by dekii
Thanks for your support
