mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[log] Log wholeCycle timeout value
This commit is contained in:
@ -458,7 +458,7 @@ function downloadUrlPromiseWithoutRedirect(ctx, uri, optTimeout, optLimit, opt_A
|
||||
.on('error', fError);
|
||||
if (optTimeout && optTimeout.wholeCycle) {
|
||||
timeoutId = setTimeout(function() {
|
||||
raiseError(ro, 'ETIMEDOUT', 'Error: whole request cycle timeout');
|
||||
raiseError(ro, 'ETIMEDOUT', `Error: whole request cycle timeout: ${optTimeout.wholeCycle}`);
|
||||
}, ms(optTimeout.wholeCycle));
|
||||
}
|
||||
});
|
||||
@ -526,7 +526,7 @@ function postRequestPromise(ctx, uri, postData, postDataStream, postDataSize, op
|
||||
});
|
||||
if (optTimeout && optTimeout.wholeCycle) {
|
||||
setTimeout(function() {
|
||||
raiseError(ro, 'ETIMEDOUT', 'Error whole request cycle timeout');
|
||||
raiseError(ro, 'ETIMEDOUT', `Error: whole request cycle timeout: ${optTimeout.wholeCycle}`);
|
||||
}, ms(optTimeout.wholeCycle));
|
||||
}
|
||||
if (postDataStream && !postData) {
|
||||
|
||||
Reference in New Issue
Block a user