Detecting dropped messages

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
Richard van Harten
Posts: 14
Joined: 02 Nov 2009, 06:07

Detecting dropped messages

Post by Richard van Harten »

Hi,

We would like to detect dropped messages, currently we have no means to detect if and what kind of messages are being dropped. We can get the underlying socketchannel which however does not seem to expose any functionality to detect it either.

Any suggestions to make this possible?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

You mean via some sort of server side events?
Lapo
--
gotoAndPlay()
...addicted to flash games
Richard van Harten
Posts: 14
Joined: 02 Nov 2009, 06:07

Post by Richard van Harten »

That would be ideal yes, it would also be ideal to be able to clear the queue so we could send some resync message.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

This is not simple as it may seem:
- dropped messages event can happen in hundreds per second under certain conditions, for example when on the server side you are running out of bandwidth. Firing so many events would be useless.

- clearing the queues would be highly dangerous because you would be eliminating messages that the server needs to deliver

We have implemented a few ideas for the next major update of SFS. One of them allows to set message priorities so that the server will first drop messages of lower priority (e.g. the user count updates, keep alives etc...)

Another one is to provide a default policy for dropped packets and the allow the developer to provide its own via custom classes.
Lapo
--
gotoAndPlay()
...addicted to flash games
Richard van Harten
Posts: 14
Joined: 02 Nov 2009, 06:07

Post by Richard van Harten »

Sounds good to me! Could you give a rough estimate for this next update?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Sorry, I am not able to do this at the moment.
This will be a major update requiring a lot of work. We'll provide more details in the first quarter of 2010.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply