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?
Detecting dropped messages
-
Richard van Harten
- Posts: 14
- Joined: 02 Nov 2009, 06:07
-
Richard van Harten
- Posts: 14
- Joined: 02 Nov 2009, 06:07
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.
- 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.
-
Richard van Harten
- Posts: 14
- Joined: 02 Nov 2009, 06:07