Skip to content
Permalink
Browse files

Merge pull request #20 from muczy/readtimeout_fix

[JENKINS-33269] Possible deadlock during checking remote job
  • Loading branch information...
cashlalala committed May 13, 2018
2 parents 1909ba7 + 0a34884 commit 607a85ed2babfc2a72444d426883d3ad65b067a1
@@ -1058,6 +1058,7 @@ private ConnectionResponse sendHTTPCall(String urlString, String requestType, Bu
addCrumbToConnection(connection, context);
// wait up to 5 seconds for the connection to be open
connection.setConnectTimeout(5000);
connection.setReadTimeout(5000);
connection.connect();
responseHeader = connection.getHeaderFields();
responseCode = connection.getResponseCode();

0 comments on commit 607a85e

Please sign in to comment.
You can’t perform that action at this time.