fix #1179 change commandTimeout to 30s
This commit is contained in:
parent
093521b12e
commit
3c1d58dd90
1 changed files with 15 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue