Menu

#84 alive message interval

0.12.0
open
Jin
UPnP (10)
5
2011-02-22
2011-02-22
PeterK
No

The documentation specifies that the UDP broadcast message has a interval of 180 seconds. However this is NOT the case, in upnp api.h the interval is defined as 1800 seconds:
#define DEFAULT_MAXAGE 1800

The result is that I have to wait sometimes almost 30 minutes before I can see the mediaserver in my client.

If you add the following line to the config.xml file: <alive>180</alive>
You expect that the alive message will be send every 180 seconds, however this is NOT the case, because in upnpapi.c the following interval is calculated: (Exp / 2 ) - AUTO_ADVERTISEMENT_TIME => (180 / 2) - 30 = 60 seconds (= every minute)

If you add the following line to the config.xml file: <alive>60</alive>
Calculated value: (60 / 2) - 30 => 0 seconds, which results in broadcasts AS FAST as possible (this is a unwanted behaviour)

Discussion


Log in to post a comment.