I am connecting to a web service and did not set any connect timeout and read timeout on HttpURLConnection. What is the default connect timeout and read timeout? Is it dependent
The Javadoc for connect() is incorrect. Zero gives you the platform connect timeout, which is not infinite, but around a minute. You can only decrease this value with the timeout parameter to connect(), not increase it.