Open lloydwatkin opened 10 years ago
We should probably think about our timeouts carefully. That said, we could always use a connection failure to also invalidate an entry and then reinitiate the lookup.
What timeout do you propose for expiring the local version?
Every time we want to discover a remote server we perform a DISCO look up (or DNS fallback). However, we (probably) already know a user's home channel server as it'll be in our database (
listener
in the subscriptions table). So why not use this instead?This does mean that the user won't be able to change the domain of their channel server but this is already an issue due to the way the listener is setup up.
What I'd suggest is we switch to checking database first in the short term, but longer term look at moving away from the listener field in the
subscriptions
table and determine if the user is remote by comparing the domain on their JID.@imaginator, @abmargb what do you think about this?