Add a connection timeout.