Fix socket connection timeout.