Mumble: Question - Mumble Protocol - Ping necessary?

Created on 26 Nov 2018  路  2Comments  路  Source: mumble-voip/mumble

Hey,

I'm currently writing a mumble client library in Scala (https://github.com/fbe/mtbb) and I'm sure how to handle the keep alive ping.

Question 1: how often do I have to send a Ping package to avoid a connection close by the server?

Question 2: I figured out that sending Pings is only necessary when no other packages are being sent - sending packages like QueryUsers in an interval of 5 seconds is enough to avoid a disconnect - without sending additional ping packages. I think that this is a good behavior but is that as specified / wanted, too or may that change in further implementations of murmur?

Thanks =)

Most helpful comment

If the server hasn't received any packet within 30 seconds it will drop the client.

While you could send other packet types to keep the connection alive, the Ping packet can be filled with statistical information. Sending a ping packet every 5-10 seconds is a good interval.

All 2 comments

If the server hasn't received any packet within 30 seconds it will drop the client.

While you could send other packet types to keep the connection alive, the Ping packet can be filled with statistical information. Sending a ping packet every 5-10 seconds is a good interval.

Thanks for the quick clarification!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

preterive picture preterive  路  3Comments

TerryGeng picture TerryGeng  路  5Comments

Elusivehawk picture Elusivehawk  路  5Comments

dvzrv picture dvzrv  路  4Comments

streaps picture streaps  路  4Comments