Set client connection timeout in SFS Java Client

Post here your questions about the Java client / Android API for SFS2X

Moderators: Lapo, Bax

Post Reply
shahidbits2012
Posts: 16
Joined: 09 Jun 2021, 07:23

Set client connection timeout in SFS Java Client

Post by shahidbits2012 »

Hi Team,

How can we specify the connection timeout in SFS Java Client?

We are seeing a scenario when a player disconnects because of some reason like "unknown", the client retries to connect to the server. This retry goes on forever. We want the behaviour in which the client connections breaks down and a we retry the again to connect. I thought if we have some kind of socket connect timeout property, that can help here. Please share your thoughts.

Note: The SFS server is up, as other players are connected and they are able to play just fine. Th disconnection is happening for few players only.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Set client connection timeout in SFS Java Client

Post by Lapo »

Hi,
no it's not possible to use a custom timeout.
We are seeing a scenario when a player disconnects because of some reason like "unknown", the client retries to connect to the server.
How is this done? Via the reconnection system or manually?
Th disconnection is happening for few players only.
Are these clients on mobile?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply