Posted by ariel_ro
on March 20, 2010 at 10:43 AM PDT
If I find another peer using getRemoteAdvertisement() method call the peer advertisement found remains in the local cache for 2 days, even though the expiration time is a few seconds.
Since peers(mostly edges in a network) are not such a persistent presence, wouldn't it be more elegant for peer advertisements to expire by default?
Meanwhile, the (obvious)workaround that I found is to flush them manually.
Is there a way to ease this task?
P.S: It's in a way nice that peer advs don't need to be published over and over again in a thread(because of their special regime they are persistent). But still, a thread is needed to clean them so it's back again with threading.