fix #1179 change commandTimeout to 30s

This commit is contained in:
Shinsuke Sugaya 2017-07-21 22:39:44 +09:00
parent 093521b12e
commit 3c1d58dd90

View file

@ -40,11 +40,11 @@ public class CommandGenerator extends BaseThumbnailGenerator {
@Resource
protected ServletContext application;
public List<String> commandList;
protected List<String> commandList;
public long commandTimeout = 10 * 1000L;// 10sec
protected long commandTimeout = 30 * 1000L;// 30sec
public File baseDir;
protected File baseDir;
private volatile Timer destoryTimer;
@ -192,4 +192,16 @@ public class CommandGenerator extends BaseThumbnailGenerator {
}
}
public void setCommandList(List<String> commandList) {
this.commandList = commandList;
}
public void setCommandTimeout(long commandTimeout) {
this.commandTimeout = commandTimeout;
}
public void setBaseDir(File baseDir) {
this.baseDir = baseDir;
}
}