Advertisement lifetime and expiretime ?
Is there a mechanism that refresh the advertisement lifetime and expiretime?
I'm trying to make my custom advertisements obsolete along with the time pass, by setting low life time and expire time. The first peer published the advertisements and also set low lifetime expiretime value, the second peer "getRemoteAdvertisements(...)". It worked fine that it can find the published adv, but something should not be happened ...
The advertisements did not disappear after the lifetime or expiretime passed. So I checked the lifetime and expiretime using "disco.getAdvLifeTime(adv)" and "disco.getAdvExpireTime(adv)" and periodically observed these values every 1 second.
I've found that they are "SOMETIMES" wrong value. I published the advs with lifetime=5 min and expiretime=1 min,but the getAdvLifeTime and getExpireTime both returned around 2 minutes (119XXX ms). It was decreasing every second but it became 119xxx ms again every around 10 sec. What happen to this?
Another thing that i can see is that when i shutdown the first peer (the publish peer), the getAdvLifeTime and getExpireTime returned decreasing value until it is disappear (removed from cache), that is what I want.
I emphasize the word "SOMETIMES" because it does not go wrong like this every time, but I cannot specify when (because I don't know the actually cause of this yet) . It sometimes work fine as I want, even rarely :-(
Thanks in advance