#5876 connection timeout handling