mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-09-20 15:26:03 +08:00
fix(move): Increase lock time for moving messages
This commit is contained in:
parent
1931d22993
commit
b7f0aa6a22
|
@ -244,7 +244,7 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
|
|||
let lock;
|
||||
|
||||
try {
|
||||
lock = await server.lock.waitAcquireLock(lockKey, 5 * 60 * 1000, 1 * 60 * 1000);
|
||||
lock = await server.lock.waitAcquireLock(lockKey, 60 * 60 * 1000, 1 * 60 * 1000);
|
||||
if (!lock.success) {
|
||||
throw new Error('Failed to get folder write lock');
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@ module.exports = (server, messageHandler) => (mailbox, update, session, callback
|
|||
};
|
||||
|
||||
let lockKey = ['mbwr', mailboxData._id.toString()].join(':');
|
||||
server.lock.waitAcquireLock(lockKey, 5 * 60 * 1000, 1 * 60 * 1000, (err, lock) => {
|
||||
server.lock.waitAcquireLock(lockKey, 60 * 60 * 1000, 1 * 60 * 1000, (err, lock) => {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
|
1588
package-lock.json
generated
1588
package-lock.json
generated
File diff suppressed because it is too large
Load diff
19
package.json
19
package.json
|
@ -37,15 +37,15 @@
|
|||
"grunt-mocha-test": "0.13.3",
|
||||
"grunt-shell-spawn": "0.4.0",
|
||||
"grunt-wait": "0.3.0",
|
||||
"imapflow": "1.0.152",
|
||||
"mailparser": "3.6.7",
|
||||
"imapflow": "1.0.156",
|
||||
"mailparser": "3.6.9",
|
||||
"mocha": "10.3.0",
|
||||
"request": "2.88.2",
|
||||
"supertest": "6.3.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fidm/x509": "1.2.1",
|
||||
"@opensearch-project/opensearch": "2.5.0",
|
||||
"@opensearch-project/opensearch": "2.6.0",
|
||||
"@phc/pbkdf2": "1.1.14",
|
||||
"@postalsys/vmc": "1.0.8",
|
||||
"@root/acme": "3.1.0",
|
||||
|
@ -54,9 +54,9 @@
|
|||
"axios": "1.6.7",
|
||||
"base32.js": "0.1.0",
|
||||
"bcryptjs": "2.4.3",
|
||||
"bson": "6.3.0",
|
||||
"bullmq": "5.3.3",
|
||||
"fido2-lib": "3.5.0",
|
||||
"bson": "6.5.0",
|
||||
"bullmq": "5.4.2",
|
||||
"fido2-lib": "3.5.2",
|
||||
"gelf": "2.0.1",
|
||||
"generate-password": "1.7.1",
|
||||
"hash-wasm": "4.11.0",
|
||||
|
@ -68,7 +68,7 @@
|
|||
"ioredis": "5.3.2",
|
||||
"ipaddr.js": "2.1.0",
|
||||
"isemail": "3.2.0",
|
||||
"joi": "17.11.0",
|
||||
"joi": "17.12.2",
|
||||
"js-yaml": "4.1.0",
|
||||
"key-fingerprint": "1.1.0",
|
||||
"libbase64": "1.3.0",
|
||||
|
@ -84,11 +84,12 @@
|
|||
"msgpack5": "6.0.2",
|
||||
"node-forge": "1.3.1",
|
||||
"node-html-parser": "6.1.12",
|
||||
"nodemailer": "6.9.10",
|
||||
"nodemailer": "6.9.12",
|
||||
"npmlog": "7.0.1",
|
||||
"openpgp": "5.11.1",
|
||||
"pem-jwk": "2.0.0",
|
||||
"punycode": "2.3.1",
|
||||
"punycode.js": "2.3.1",
|
||||
"pwnedpasswords": "1.0.6",
|
||||
"qrcode": "1.5.3",
|
||||
"restify": "11.1.0",
|
||||
|
@ -98,7 +99,7 @@
|
|||
"restifyapigenerate": "1.2.0",
|
||||
"search-string": "3.1.0",
|
||||
"seq-index": "1.1.0",
|
||||
"smtp-server": "3.13.2",
|
||||
"smtp-server": "3.13.3",
|
||||
"speakeasy": "2.0.0",
|
||||
"undici": "5.28.2",
|
||||
"unix-crypt-td-js": "1.1.4",
|
||||
|
|
Loading…
Reference in a new issue