Fix: prevent continuous CONNECT when the TCP/IP network is slow or
unstable.