Increase web request timeout, drop failed delivery receipts (#1699)

Increase web request timeout, drop failed delivery receipts, export error logging
pull/749/head
Scott Nonnenberg 8 years ago committed by GitHub
parent 845291c51e
commit cae2b10af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -630,8 +630,8 @@
}
};
request.onerror = function(event) {
console.log('Error adding object to store:', error);
reject();
console.log('Error adding object to store:', event);
reject(new Error('saveAllMessage: onerror fired'));
};
});
});

@ -67,6 +67,7 @@
receipt.get('source'),
receipt.get('timestamp')
);
resolve();
}
}.bind(this)).catch(function(error) {
console.log(

@ -37474,7 +37474,7 @@ var TextSecureServer = (function() {
url = options.host + '/' + options.path;
}
console.log(options.type, url);
var timeout = typeof options.timeout !== 'undefined' ? options.timeout : 5000;
var timeout = typeof options.timeout !== 'undefined' ? options.timeout : 10000;
var fetchOptions = {
method: options.type,

@ -37,7 +37,7 @@ var TextSecureServer = (function() {
url = options.host + '/' + options.path;
}
console.log(options.type, url);
var timeout = typeof options.timeout !== 'undefined' ? options.timeout : 5000;
var timeout = typeof options.timeout !== 'undefined' ? options.timeout : 10000;
var fetchOptions = {
method: options.type,

Loading…
Cancel
Save