#9 bug in advertisement time

open
nobody
None
5
2002-10-21
2002-10-21
Anonymous
No

After I looked into the source code deeply, I thought
there is a bug in the advertisement time setting.

When you call UpnpSendAdvertisement(handle, exp),
the implementation of UpnpSendAdvertisement() will call
ScheduleTimerEvent(exp -
AUTO_ADVERTISEMENT_TIME, ... ), where
AUTO_ADVERTISEMENT_TIME = 30. So as long as
you set exp to be less than 30 seconds, actually it will
advertise immediately. While inside the SSDP packet,
its maximum age is the "exp", which doesn't match the
real case.

-Xiao

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks