Remember to use the following Java Env params to increase socet timeout:
-Dsun.net.client.defaultReadTimeout=30000
-Dsun.net.client.defaultConnectTimeout=30000 -cp