Skip to content

Commit

Permalink
Merge pull request #20 from muczy/readtimeout_fix
Browse files Browse the repository at this point in the history
[JENKINS-33269] Possible deadlock during checking remote job
  • Loading branch information
cashlalala committed May 13, 2018
2 parents 1909ba7 + 0a34884 commit 607a85e
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -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();
Expand Down

0 comments on commit 607a85e

Please sign in to comment.