mirror of
https://hub.spigotmc.org/stash/scm/spigot/buildtools.git
synced 2025-04-13 09:31:28 +00:00
BUILDTOOLS-640: Increase connection timeout to 30 seconds
This commit is contained in:
parent
d9217b2eba
commit
1f7c0c759c
1 changed files with 2 additions and 2 deletions
|
@ -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() ) )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue