Set connect+read timeout for metrics.

This commit is contained in:
asofold 2012-09-26 16:36:23 +02:00
parent 994ccc681f
commit 71316e1f13

View File

@ -538,7 +538,8 @@ public class Metrics {
connection = url.openConnection(Proxy.NO_PROXY);
else
connection = url.openConnection();
connection.setConnectTimeout(8000);
connection.setReadTimeout(16000);
connection.setDoOutput(true);