From 14c3b13a118a2d89290b07da983241f998ea65e7 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Wed, 21 Oct 2015 23:25:30 +0200 Subject: [PATCH] mod_http_upload: Increase the upload slot timeout If a large file was uploaded over a slow connection, the slot might've timed out before the upload was completed. --- mod_http_upload/src/mod_http_upload.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_http_upload/src/mod_http_upload.erl b/mod_http_upload/src/mod_http_upload.erl index 3fa87ab..069d0e9 100644 --- a/mod_http_upload/src/mod_http_upload.erl +++ b/mod_http_upload/src/mod_http_upload.erl @@ -12,7 +12,7 @@ -define(NS_HTTP_UPLOAD, <<"urn:xmpp:http:upload">>). -define(NS_HTTP_UPLOAD_OLD, <<"eu:siacs:conversations:http:upload">>). -define(SERVICE_REQUEST_TIMEOUT, 5000). % 5 seconds. --define(SLOT_TIMEOUT, 600000). % 10 minutes. +-define(SLOT_TIMEOUT, 18000000). % 5 hours. -define(PROCNAME, ?MODULE). -define(URL_ENC(URL), binary_to_list(ejabberd_http:url_encode(URL))). -define(ADDR_TO_STR(IP), ejabberd_config:may_hide_data(jlib:ip_to_list(IP))).