I was running unbound in front of dnscrypt-proxy with a TCP connection. After a little while, the connection between unbound and dnscrypt stopped working and was only noticeable by changing the log level in unbound to debug (level 3).
Once I did that, I was able to see the problem and change the connection to UDP.
Can you share the message that was logged by Unbound? Without the log message it will be hard to figure what went wrong and whether the issue is in Unbound itself.
I was running unbound in front of dnscrypt-proxy with a TCP connection. After a little while, the connection between unbound and dnscrypt stopped working and was only noticeable by changing the log level in unbound to debug (level 3).
Once I did that, I was able to see the problem and change the connection to UDP.
@see: https://serverfault.com/questions/964842/unbound-periodically-stops-working