check connection timeout