src/main/distrib/data/gitblit.properties | ●●●●● patch | view | raw | blame | history | |
src/main/java/com/gitblit/transport/ssh/commands/SshCommandFactory.java | ●●●●● patch | view | raw | blame | history |
src/main/distrib/data/gitblit.properties
@@ -129,6 +129,12 @@ # SINCE 1.5.0 git.sshBackend = NIO2 # Number of thread for starting SSH commands. # # SINCE 1.5.0 git.sshCommandStartThreads = 2 # Allow push/pull over http/https with JGit servlet. # If you do NOT want to allow Git clients to clone/push to Gitblit set this # to false. You might want to do this if you are only using ssh:// or git://. src/main/java/com/gitblit/transport/ssh/commands/SshCommandFactory.java
@@ -36,6 +36,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.gitblit.Keys; import com.gitblit.manager.IGitblit; import com.gitblit.transport.ssh.SshDaemonClient; import com.gitblit.utils.IdGenerator; @@ -58,7 +59,7 @@ public SshCommandFactory(IGitblit gitblit, IdGenerator idGenerator) { this.gitblit = gitblit; int threads = 2;// cfg.getInt("sshd","commandStartThreads", 2); int threads = gitblit.getSettings().getInteger(Keys.git.sshCommandStartThreads, 2); WorkQueue workQueue = new WorkQueue(idGenerator); startExecutor = workQueue.createQueue(threads, "SshCommandStart"); destroyExecutor = Executors.newSingleThreadExecutor(