Closed heifner closed 1 month ago
You do get a warn message on the first resolve, but since it never attempts the resolve again you only get the warn message once.
warn 2024-08-14T13:19:55.590 net-2 net_plugin.cpp:4638 operator() ] Unable to resolve p2p.spring-beta.jungletestnet.io:9898 Host not found (authoritative)
fwiw, (depending on complexity of course) imo a fix for this should go in to stable release. It prevents the ability to do basic failover approaches via low TTL DNS records since clients won't see the updated record.
Currently
net_plugin
resolves endpoints at startup and then reuses thetcp::resolver::results_type
for any re-connection attempt. If resolve fails at startup then the resolve is not attempted again. Alsonet_plugin
reports an unhelpful "Element not found` error.See https://github.com/AntelopeIO/spring/pull/523#discussion_r1714117611