Match all git fetch/clone/push commands to the command executor

Route not just /p/ but any Git access to the same thread pool
as the SSH server is using, allowing all requests to compete
fairly for resources.

Change-Id: I3d62a4537288ee8089cb42256bd6306852f7fa09
This commit is contained in:
Shawn O. Pearce
2012-11-28 12:19:49 -08:00
parent 64611b9938
commit 6fbd5e58d6

View File

@@ -71,7 +71,7 @@ public class ProjectQoSFilter implements Filter {
private static final String CANCEL = ATT_SPACE + "/CANCEL";
private static final String FILTER_RE =
"^/p/(.*)/(git-upload-pack|git-receive-pack)$";
"^/(.*)/(git-upload-pack|git-receive-pack)$";
private static final Pattern URI_PATTERN = Pattern.compile(FILTER_RE);
public static class Module extends ServletModule {