<!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->
<!-- Describe the issue -->
I run several Bitcoin nodes on Amazon EC2 and notice some of them stop making feeler connections after a while. I checked the debug.log of the nodes and see that "Potential stale tip detected, will try using extra outbound peer" messages are printed out frequently, up to 10+ per day. The messages appear more frequently when the feeler connections disappear.
<!--- What behavior did you expect? -->
I expect the nodes still make feeler connections in between events of the 9th outgoing connection made because of the stale tip. I presume SetTryNewOutboundPeer() incorrectly set the flags somewhere so that fFeeler is always false.
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
The problem happens naturally for some nodes after running 20-30 days.
All nodes are running Bitcoin core 0.17.0 by default non-stop on Ubuntu 18.04 LTS and with some minimal logging messages I added myself.
I tried to restart one node and the problem is gone. I guess because outgoing peers have been chosen again when node restarts.
<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
<!-- For the GUI-related issue on Linux provide names and versions of a distro, a desktop environment and a graphical shell (if relevant). -->
<!-- Any extra information that might be useful in the debugging process. -->
<!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->