Extension request limit

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

moonlife
Posts: 45
Joined: 26 Sep 2016, 08:22

Extension request limit

Postby moonlife » 11 Mar 2021, 12:11

Hi,

Can I set the extension send request limit for user on SmartFoxServer system?

In our app, user can send plenty of extension request with mouse autoclick program and cpu increases suddenly.

What should we do to prevent request flood?

Thanks
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Extension request limit

Postby Lapo » 11 Mar 2021, 13:20

Hi,
the first line of "defense" is from client side, by adding a "cooldown" so that the client does not react on every mouse click. For example a 50-100ms cooldown could help, depending on the speed/message-rate of the game itself.

You could also implement the cooldown from server-side, with the same system, but the former solution also avoids the client to actually waste bandwidth.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 27 guests