Resolution
Listening Tentacles use Halibut for their main mode of communication when it's set to the Listening Configuration, and they will attempt to reuse long-lived, preexisting TCP connections rather than establishing new ones. Because of this, both Firewalls and Load Balancers that use an idle timeout will cut these connections off without properly terminating them; increasing this timeout for traffic communicating out of Port 10933 is the best way to resolve this.
Symptom
If you're seeing frequent Tentacle idle connection timeouts and disconnections.
Scope: when this is the right article
If you're seeing this behavior with Listening Tentacles and have ruled out security services or other non-networking issues that could be disrupting the Tentacle service.
Cause
In most use cases, this will happen when long-lived connections get set for expiration on either a Load Balancer or a Firewall's connection table; they don't send out a TCP Reset packet to show that the communication is terminated, leaving the Tentacle idling until it times out on its own end, as that's the backup mechanism it uses to determine if the connection has gone idle for too long.
There are a few other more causes; misconfiguration of firewall rules or security policies, for instance, can drop incoming traffic on port 10933, which won't always send a Reset packet, resulting in the error above. Security Software with adaptive Networking policies can also do this dynamically, so make sure to whitelist your Tentacle communication accordingly.
Finally, Dynamic IP changes might also cause this. While it's unlikely you'll see a change frequent enough to cause this specific issue, a misconfiguration or rogue DHCP server might be another possibility.
Diagnosis and fix
Simply increasing the idle timeout for traffic on port 10933 should be enough to resolve this issue for most Firewalls or load balancers. You'll see this more often in AWS or Azure load balancers that have shorter timers around connection idling than a firewall you've deployed yourself.
Verify
You should no longer see idle disconnects if this is working properly. Alternatively, you can confirm the expiration is working properly by checking the existing connection tables on your Load Balancer or Firewall and the connection times for the ones related to Tentacle.