• Recent blogs

    How to Close A Socket / Port On Server In a TIME_WAIT State Forcefully

    How to Close A Socket / Port On Server In a TIME_WAIT State Forcefully

    TIME-WAIT state can exists on either server or client program. It represents waiting for the defined time to pass to be sure the remote TCP received the acknowledgment of its connection termination request. The /proc/sys/net/ipv4/tcp_fin_timeout setting determines the time that must elapse before TCP/IP can release a closed connection and reuse its resources. This is known as TIME_WAIT state. TIME_WAIT is a normal part of the TCP connection. However, if you must close a socket in TIME_WAIT state, try:

    To Check current TIME_WAIT settings, Type the following command
    [ansible@dockerserver ~]$ cat /proc/sys/net/ipv4/tcp_fin_timeout
    [ansible@dockerserver ~]$

    You can lower the value by typing the following command as root user:
    # echo 10 > /proc/sys/net/ipv4/tcp_fin_timeout

    To set /proc/sys/net/ipv4/tcp_fin_timeout to 20 permanently, edit the file /etc/sysctl.conf and set it as follows:

    sysctl -p

    Restating the network service :
    To restart the network service under RHEL / CentOS based systems, enter:
    # service network restart   (init based)


    systemctl restart network.service (systemd based)

    Interesting Articles on Kubernetes:

    Kubernetes : Kubernetes Node Management, Maintenance, Delete
    How to add a  New Worker Node to a existing kubernetes Cluster
    MinIO Client Installation and Quickstart
    PLEG is not healthy: Kubernetes Worker Node is in "NotReady" state
    Backup MySQL databases in Kubernetes
    How to Run Automated Tasks in Kubernetes with a cronjob
    How to Completely remove Kubernetes 

    No comments