调整
This commit is contained in:
parent
6c52ede51b
commit
b699f1fb3a
@ -180,7 +180,7 @@ public class Gb28181DownloadService {
|
||||
@SuppressWarnings({"UnstableApiUsage", "unchecked"})
|
||||
public void video(HttpServletRequest request, HttpServletResponse response, String deviceCode, Date startTime, Date endTime, Boolean fileHeader, Boolean useDownload) {
|
||||
AsyncContext asyncContext = request.startAsync();
|
||||
asyncContext.setTimeout(DateUtil.between(startTime, DateUtil.offsetSecond(endTime, 30), DateUnit.MS));
|
||||
asyncContext.setTimeout(DateUtil.between(startTime, DateUtil.offsetSecond(endTime, 60), DateUnit.MS));
|
||||
asyncContext.start(()->{
|
||||
DateTime start = DateUtil.date();
|
||||
HttpServletResponse asyncResponse = (HttpServletResponse)asyncContext.getResponse();
|
||||
|
Loading…
Reference in New Issue
Block a user