mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-04 23:07:44 +01:00
Set connect+read timeout for metrics.
This commit is contained in:
parent
994ccc681f
commit
71316e1f13
@ -538,7 +538,8 @@ public class Metrics {
|
|||||||
connection = url.openConnection(Proxy.NO_PROXY);
|
connection = url.openConnection(Proxy.NO_PROXY);
|
||||||
else
|
else
|
||||||
connection = url.openConnection();
|
connection = url.openConnection();
|
||||||
|
connection.setConnectTimeout(8000);
|
||||||
|
connection.setReadTimeout(16000);
|
||||||
connection.setDoOutput(true);
|
connection.setDoOutput(true);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user