Set client connection timeout in SFS Java Client

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

Moderators: Lapo, Bax

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

Set client connection timeout in SFS Java Client

Postby shahidbits2012 » 30 Aug 2021, 05:44

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: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Set client connection timeout in SFS Java Client

Postby Lapo » 30 Aug 2021, 08:46

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

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 23 guests