Skip to content

Commit

Permalink
Fix JENKINS-12696
Browse files Browse the repository at this point in the history
Add a timeout to the network activity.
  • Loading branch information
emonty committed Feb 9, 2012
1 parent b862ef3 commit d2a447a
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -138,6 +138,11 @@ private Client getClientObject(URLTriggerEntry entry, XTriggerLog log) {
if (isAuthBasic(entry)) {
addBasicAuth(entry, log, client);
}
/* Set a connect and read timeout. If this hangs, it can actually
take down all of the jenkins schedule events.
This is 5 minutes expressed as milliseconds. */
client.setConnectTimeout(300000);
client.setReadTimeout(300000);
return client;
}

Expand Down

0 comments on commit d2a447a

Please sign in to comment.