set connectTimeout & socketTimeout to 1000L(means 1 second)