Permalink
Browse files

Fix units of httpd.maxwait

The default unit here is minutes, but Jetty wants to get milliseconds
from the maxWait field. Convert the minutes returned by getTimeUnit to
be milliseconds, matching what Jetty expects.

This should resolve a large number of 503 errors for Git over HTTP.

Change-Id: I43cd65c2e17cf0e7eb44b4e67b3ae843e883fc55
  • Loading branch information...
spearce committed Jul 2, 2012
1 parent 8bacce1 commit 6735702d9dabf8217180fb26a76d6142e0218249
@@ -97,7 +97,7 @@ protected void configureServlets() {
this.userProvider = userProvider;
this.queue = queue;
this.context = context;
- this.maxWait = getTimeUnit(cfg, "httpd", null, "maxwait", 5, MINUTES);
+ this.maxWait = MINUTES.toMillis(getTimeUnit(cfg, "httpd", null, "maxwait", 5, MINUTES));
}
@Override

0 comments on commit 6735702

Please sign in to comment.