BUILDTOOLS-640: Increase connection timeout to 30 seconds

This commit is contained in:
md_5 2022-12-21 18:38:26 +11:00
parent d9217b2eba
commit 1f7c0c759c
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -792,8 +792,8 @@ public class Builder
public static final String get(String url) throws IOException
{
URLConnection con = new URL( url ).openConnection();
con.setConnectTimeout( 5000 );
con.setReadTimeout( 5000 );
con.setConnectTimeout( 30000 );
con.setReadTimeout( 30000 );
try ( InputStreamReader r = new InputStreamReader( con.getInputStream() ) )
{