Skip to content
Permalink
Browse files
Timeout increased, git ignore update
  • Loading branch information
dspavlov committed Feb 2, 2019
1 parent d3e9732 commit f6017b0a6923bd189a3605469708221418c5fb4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
@@ -13,6 +13,7 @@
# IDEA project
.idea/
*.iml
*.ipr

# gradle build files
.gradle/
@@ -78,6 +78,8 @@ public static InputStream sendGetWithBasicAuth(String basicAuthTok, String url)
final Stopwatch started = Stopwatch.createStarted();
URL obj = new URL(url);
HttpURLConnection con = (HttpURLConnection)obj.openConnection();
con.setConnectTimeout(60000); //todo make configurable
con.setReadTimeout(60000);

con.setRequestProperty("Authorization", "Basic " + basicAuthTok);
con.setRequestProperty("Connection", "Keep-Alive");

0 comments on commit f6017b0

Please sign in to comment.