mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-09 12:10:37 +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);
|
||||
else
|
||||
connection = url.openConnection();
|
||||
|
||||
connection.setConnectTimeout(8000);
|
||||
connection.setReadTimeout(16000);
|
||||
connection.setDoOutput(true);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user