This commit is contained in:
tonikelope 2018-01-06 14:39:01 +01:00
parent 15f7cf0f46
commit f902d321bd
2 changed files with 3 additions and 2 deletions

View File

@ -37,6 +37,7 @@ import org.apache.http.impl.client.CloseableHttpClient;
*/
public class ChunkUploader implements Runnable, SecureSingleThreadNotifiable {
public static final int FUTURE_TIMEOUT = 120;
private final int _id;
private final Upload _upload;
private volatile boolean _exit;
@ -192,7 +193,7 @@ public class ChunkUploader implements Runnable, SecureSingleThreadNotifiable {
if (!_exit) {
httpresponse = futureTask.get(HTTP_TIMEOUT + 5, TimeUnit.SECONDS);
httpresponse = futureTask.get(FUTURE_TIMEOUT, TimeUnit.SECONDS);
} else {

View File

@ -212,7 +212,7 @@ public class ChunkUploaderMono extends ChunkUploader {
try {
httpresponse = futureTask.get(HTTP_TIMEOUT + 5, TimeUnit.SECONDS);
httpresponse = futureTask.get(FUTURE_TIMEOUT, TimeUnit.SECONDS);
http_status = httpresponse.getStatusLine().getStatusCode();