developerinlondon
Programmer
i am trying to change the default connection timeout in a URLConnection so that it waits a bit longer. But I seem to be getting connection timeout errors in shorter times.
code :
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
conn.setConnectTimeout(300000);
in my logs I get a timeout error in about 21000ms.
any ideas?
code :
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
conn.setConnectTimeout(300000);
in my logs I get a timeout error in about 21000ms.
any ideas?