Maximum result of find request is 50

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

Moderators: Lapo, Bax

anhn1721
Posts: 4
Joined: 31 Mar 2018, 10:37

Maximum result of find request is 50

Postby anhn1721 » 31 Mar 2018, 10:43

Hello everyone,

I using smartfox client for unity. I have problem when use FindUsersRequest and FindRoomsRequest to get all rooms and users in room lobby.
I can only receive a maximum of 50 returned results. I want to get all rooms and users.

Thank all.
User avatar
Lapo
Site Admin
Posts: 20214
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Maximum result of find request is 50

Postby Lapo » 03 Apr 2018, 11:08

Hi,
yes there's a limit of 50 results for the client side to avoid sending massive lists of rooms/users especially if the system gets abused.
(If you check the logs you should see and error saying exactly that)
E.g. somebody might try to spam multiple search requests that return 1000s of results to slow down the server or saturate the bandwidth.

Typically 50 is more than what's needed for match making, quick joins etc... Also If you run a search from server side you can access the whole list of results.

In any case we could make this limit configurable from AdminTool so that admins can set it to their needs.
I think this change could be released pretty quickly as a patch for SFS2X 2.13 if it helps.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
anhn1721
Posts: 4
Joined: 31 Mar 2018, 10:37

Re: Maximum result of find request is 50

Postby anhn1721 » 07 Apr 2018, 14:11

Ok, I got it. Thank you very much :D
anhn1721
Posts: 4
Joined: 31 Mar 2018, 10:37

Re: Maximum result of find request is 50

Postby anhn1721 » 10 Apr 2018, 11:38

Hello Lapo,

You can add config max invite, max find user and max find room in AdminTool in next version?

I think some people will need this configuration. Thank you :D
User avatar
Lapo
Site Admin
Posts: 20214
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Maximum result of find request is 50

Postby Lapo » 10 Apr 2018, 13:28

Hi,
sure we already have it at the top of our list for the next release.
Lapo

--

gotoAndPlay()

...addicted to flash games
anhn1721
Posts: 4
Joined: 31 Mar 2018, 10:37

Re: Maximum result of find request is 50

Postby anhn1721 » 10 Apr 2018, 16:39

Thank you very much :D

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 2 guests