I have two python scripts, which reside on different machines and are connected by a TCP connection. If the scripts do not share any data, they send dummy packets, so that the session is never idle for a long period (max 5s). For any reason the connection dies after about 2-3days.
Is there something like a maximum session time in linux, which just kills the socket? If so, how should I proceed? Recreate the connection once a day, set some value in /proc?