How do I check connection timeout?
To test a connection timeout at the socket level, freeze the nc process with a kill -STOP (or just CTRL-Z it without putting in background). The system will act as if the server was running, but wait for the server to accept the connection, resulting in a connection timeout (errno 110).