nic_router: lower non-open tcp timeout to 30 sec

The previous value of 60 seconds was never observed in real-time scenarios and
UDP, for instance always used a timeout of 30 seconds without causing issues.
Note that this applies only to TCP connections in a state other than
ESTABLISHED, i.e., while it is still safe to early-drop the connection.

Ref #4729
This commit is contained in:
Martin Stein 2024-06-03 10:27:26 +02:00 committed by Norman Feske
parent 0a33168733
commit 58726a6707

View File

@ -104,7 +104,7 @@ Configuration::Configuration(Env &env,
_icmp_idle_timeout { read_sec_attr(node, "icmp_idle_timeout_sec", 10) },
_udp_idle_timeout { read_sec_attr(node, "udp_idle_timeout_sec", 30) },
_tcp_idle_timeout { read_sec_attr(node, "tcp_idle_timeout_sec", 600) },
_tcp_max_segm_lifetime { read_sec_attr(node, "tcp_max_segm_lifetime_sec", 30) },
_tcp_max_segm_lifetime { read_sec_attr(node, "tcp_max_segm_lifetime_sec", 15) },
_node { node }
{
/* do parts of domain initialization that do not lookup other domains */