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:
@@ -71,7 +71,7 @@ public class ProjectQoSFilter implements Filter {
|
|||||||
private static final String CANCEL = ATT_SPACE + "/CANCEL";
|
private static final String CANCEL = ATT_SPACE + "/CANCEL";
|
||||||
|
|
||||||
private static final String FILTER_RE =
|
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);
|
private static final Pattern URI_PATTERN = Pattern.compile(FILTER_RE);
|
||||||
|
|
||||||
public static class Module extends ServletModule {
|
public static class Module extends ServletModule {
|
||||||
|
Reference in New Issue
Block a user