If we don't query a server (because we already know about it)
authorCarl Hetherington <cth@carlh.net>
Thu, 26 Nov 2020 01:05:25 +0000 (02:05 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 26 Nov 2020 01:24:32 +0000 (02:24 +0100)
commitdfb23c675ca145b5570ccb5790ea804ad736a247
treeac336998be15bd3843abf301a0af2113a6b65ddc
parent82fbf2b9e43fb234f843dc3352fecbd08eeed3f7
If we don't query a server (because we already know about it)
the "last seen time" will never be updated, so the server will
be discarded.

It seems that we should always ping servers (so that set_seen gets
called on receipt of the response), no matter whether
"auto-discovered" or configured, so that the "discard" code doesn't
kick in.

Otherwise we remove and re-add our configured servers every
10 seconds, which is inefficient and which possibly triggers
other bugs.
src/lib/encode_server_finder.cc