solved test failure on windows, linux reported ConnectException and
windows SocketTimeoutException.