# Close the connection after a client is idle for N seconds
(0 to disable)
I've set the timeout value to 0 to confirm if this is
actually the problem.
In case it might be useful for somebody, we've used lsof in
recurrent mode to monitor the sockets status:
===05:28:26===
kamailio 13365 kamailio 4u IPv4 58622 0t0 TCP
localhost:34994->localhost:6379 (ESTABLISHED)
kamailio 13366 kamailio 4u IPv4 58626 0t0 TCP
localhost:34995->localhost:6379 (ESTABLISHED)
kamailio 13367 kamailio 4u IPv4 58628 0t0 TCP
localhost:34996->localhost:6379 (ESTABLISHED)
kamailio 13368 kamailio 4u IPv4 58632 0t0 TCP
localhost:34997->localhost:6379 (ESTABLISHED)
kamailio 13369 kamailio 4u IPv4 58649 0t0 TCP
localhost:35000->localhost:6379 (ESTABLISHED)
kamailio 13370 kamailio 4u IPv4 58661 0t0 TCP
localhost:35003->localhost:6379 (ESTABLISHED)
kamailio 13376 kamailio 10u IPv4 58710 0t0 TCP
localhost:35013->localhost:6379 (ESTABLISHED)
kamailio 13377 kamailio 4u IPv4 58705 0t0 TCP
localhost:35012->localhost:6379 (ESTABLISHED)
kamailio 13378 kamailio 4u IPv4 58695 0t0 TCP
localhost:35008->localhost:6379 (ESTABLISHED)
kamailio 13381 kamailio 4u IPv4 58691 0t0 TCP
localhost:35006->localhost:6379 (ESTABLISHED)
kamailio 13382 kamailio 4u IPv4 58693 0t0 TCP
localhost:35007->localhost:6379 (ESTABLISHED)
===05:28:31===
kamailio 13365 kamailio 4u IPv4 58622 0t0 TCP
localhost:34994->localhost:6379 (ESTABLISHED)
kamailio 13366 kamailio 4u IPv4 58626 0t0 TCP
localhost:34995->localhost:6379 (CLOSE_WAIT)
kamailio 13367 kamailio 4u IPv4 58628 0t0 TCP
localhost:34996->localhost:6379 (ESTABLISHED)
kamailio 13368 kamailio 4u IPv4 58632 0t0 TCP
localhost:34997->localhost:6379 (CLOSE_WAIT)
kamailio 13369 kamailio 4u IPv4 58649 0t0 TCP
localhost:35000->localhost:6379 (CLOSE_WAIT)
kamailio 13370 kamailio 4u IPv4 58661 0t0 TCP
localhost:35003->localhost:6379 (CLOSE_WAIT)
kamailio 13376 kamailio 10u IPv4 58710 0t0 TCP
localhost:35013->localhost:6379 (CLOSE_WAIT)
kamailio 13377 kamailio 4u IPv4 58705 0t0 TCP
localhost:35012->localhost:6379 (CLOSE_WAIT)
kamailio 13378 kamailio 4u IPv4 58695 0t0 TCP
localhost:35008->localhost:6379 (CLOSE_WAIT)
kamailio 13381 kamailio 4u IPv4 58691 0t0 TCP
localhost:35006->localhost:6379 (CLOSE_WAIT)
kamailio 13382 kamailio 4u IPv4 58693 0t0 TCP
localhost:35007->localhost:6379 (CLOSE_WAIT)