rust-lightning icon indicating copy to clipboard operation
rust-lightning copied to clipboard

Re-lookup DNS names in HttpClient after connect failure

Open TheBlueMatt opened this issue 4 years ago • 1 comments

@devrandom noted at https://github.com/rust-bitcoin/rust-lightning/pull/931#issuecomment-851624586 that we currently cache the dns resolution result in HttpClient and never re-look-up the name after repeated connection failure. We should cache the T: ToSocketAddrs type instead.

TheBlueMatt avatar Jun 01 '21 03:06 TheBlueMatt

As a specific use case, assume you have a kubernetes cluster, and bitcoind is on one of the nodes. If the nodes goes down and the service is migrated to another node, the client will experience a disconnect, and the service DNS entry will be repointed at the new node.

devrandom avatar Jun 01 '21 07:06 devrandom