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
This commit is contained in:
parent
8bacce19bc
commit
6735702d9d
@ -97,7 +97,7 @@ public class ProjectQoSFilter implements Filter {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user