I am not sure if this is bug but i am currently reworking my old game into the SFS2 and i spotted some strange behaviour that some users randomly stopped getting the ROOM_ADD and ROOM_REMOVE events. There is no exact point or reason why this happens, so i tried to simplify it to the lowest common denominator. So the test client now does just 3 things:
1. join user to Lobby and hook ROOM_ADD/ROOM_REMOVE for trace
2. call extension command createCustom which creates a simple room on server side and joins him in
3. call extension command deleteCustom which sends user back to lobby and deletes that room
When i run 2 clients and keep spamming those 2 commands repetitively sometimes one or both clients stop getting those events about creation/deletion of the rooms. Even thou on server side everything works like a charm and i see the creation as well as deletion of the rooms.
All rooms are in default group. Working with AS3 API on Windows 7 64 Bit.
Any ideas?
Thanks.
[Solved] BUG? ROOM_ADD/ROOM_REMOVE stopped working randomly.
[Solved] BUG? ROOM_ADD/ROOM_REMOVE stopped working randomly.
Last edited by sHTiF on 08 Nov 2010, 08:57, edited 1 time in total.
Pushing the limits of flash platform at http://blog.flash-core.com
Actually it will stop working even when you run single client but you need to spam it kind of fast. I am curious if its due to some synchronization problem on client side that it all stops since it can be expected when you spam requests like 10 a second. Is there anything to bulletproof it? Yes i can wait for the response and don't allow request before the previous one, but either way i would like to know what exactly goes wrong here. Since once it goes its deaf to all events and everything that is going on.
Thanks.
Thanks.
Pushing the limits of flash platform at http://blog.flash-core.com
Oki even waiting for the response doesn't work and after random time the response from the server stop. So what i changed is now after step 2. it waits till it get response that the room was created and joined. And as well after 3. it waits for the response if it was all completed as well.
Still when i spam it everything stops working on client side, i don't even get my custom responses from extension that it did its work. Server side as usual works without any problems showing in console.
Is there some flood protection going on, but i guess i would see that in a console. I don't have flood filter activated in the zone.
Thanks again and i hope you don't mind talking with myself here in this topic, any pointers would be appretiated.
Still when i spam it everything stops working on client side, i don't even get my custom responses from extension that it did its work. Server side as usual works without any problems showing in console.
Is there some flood protection going on, but i guess i would see that in a console. I don't have flood filter activated in the zone.
Thanks again and i hope you don't mind talking with myself here in this topic, any pointers would be appretiated.
Pushing the limits of flash platform at http://blog.flash-core.com
We have never seen any problem like this in our tests and we have run many, including lots of spamming attacks with tons of rooms and extensions. Anyways never say never...
I would like to see your test and try it here, but before that... are you checking the server logs? Any errors during the spamming? No warnings, nothing?
"Hooking" the events should be done before even starting the connection, make sure to fix it if necessary.
I would like to see your test and try it here, but before that... are you checking the server logs? Any errors during the spamming? No warnings, nothing?
1. join user to Lobby and hook ROOM_ADD/ROOM_REMOVE for trace
"Hooking" the events should be done before even starting the connection, make sure to fix it if necessary.
Lapo yep i a do the hooks before the connection itself as usual even if what i wrote may suggest otherwise.
And yes i do check the server logs, everything works there. So when i spam the commands just the client stops getting any SFSEvents from the server but server works normally i can even still spam it and see the creation/deletion but there is no response to the client about it.
And yes i do check the server logs, everything works there. So when i spam the commands just the client stops getting any SFSEvents from the server but server works normally i can even still spam it and see the creation/deletion but there is no response to the client about it.
Pushing the limits of flash platform at http://blog.flash-core.com
Lapo thanks i've send you the sourcecodes for client, extension as well as the zone config to info@smartfoxserver.com email address i hope thats the correct one. If not i can resend.
Thank you.
Thank you.
Pushing the limits of flash platform at http://blog.flash-core.com