default socket timeout to zero (= disabled) in the case of catching
the exception (would be better to throw the exception)