Port lingering is a known and expected behavior in Linux. The listening ports will linger for a configured amount of time even after processes have died. If you encounter this issue, Teradata recommends taking these actions to mitigate the problem:
- Reduce the FIN timeout, which causes sockets to linger for a shorter time. For example:
sysctl net.ipv4.tcp_fin_timeout=30Reducing the timeout to near-zero risks dropped packets during normal operations.
- Enable socket reuse, which allows the next server process to bind to a lingering socket. For example: