Increase web request timeout, drop failed delivery receipts (#1699)
Increase web request timeout, drop failed delivery receipts, export error logging
This commit is contained in:
parent
845291c51e
commit
cae2b10af6
4 changed files with 5 additions and 4 deletions
|
@ -630,8 +630,8 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
request.onerror = function(event) {
|
request.onerror = function(event) {
|
||||||
console.log('Error adding object to store:', error);
|
console.log('Error adding object to store:', event);
|
||||||
reject();
|
reject(new Error('saveAllMessage: onerror fired'));
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -67,6 +67,7 @@
|
||||||
receipt.get('source'),
|
receipt.get('source'),
|
||||||
receipt.get('timestamp')
|
receipt.get('timestamp')
|
||||||
);
|
);
|
||||||
|
resolve();
|
||||||
}
|
}
|
||||||
}.bind(this)).catch(function(error) {
|
}.bind(this)).catch(function(error) {
|
||||||
console.log(
|
console.log(
|
||||||
|
|
|
@ -37474,7 +37474,7 @@ var TextSecureServer = (function() {
|
||||||
url = options.host + '/' + options.path;
|
url = options.host + '/' + options.path;
|
||||||
}
|
}
|
||||||
console.log(options.type, url);
|
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 = {
|
var fetchOptions = {
|
||||||
method: options.type,
|
method: options.type,
|
||||||
|
|
|
@ -37,7 +37,7 @@ var TextSecureServer = (function() {
|
||||||
url = options.host + '/' + options.path;
|
url = options.host + '/' + options.path;
|
||||||
}
|
}
|
||||||
console.log(options.type, url);
|
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 = {
|
var fetchOptions = {
|
||||||
method: options.type,
|
method: options.type,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue