node_modules: update (#344)

Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
Dawid Dziurlaanddawidd6 authored and GitHub committed 2026-10-10 17:27:57 +02:00
1 parent b099186883
commit 6e88c72525
63 files changed
+2863 -1227

No files matched your search

+7 -1
View File
@@ -42,6 +42,9 @@ class SMTPPool extends EventEmitter {
this.options.maxMessages = this.options.maxMessages || 100;
// a default bound, a server that closes every connection before the greeting would otherwise be retried forever
this.options.maxRequeues = typeof this.options.maxRequeues === 'number' ? this.options.maxRequeues : 5;
// below the 5 minutes RFC 5321 asks servers to wait at least, the connection is closed by us
// and not by the server in the middle of handing it a message
this.options.idleTimeout = typeof this.options.idleTimeout === 'number' ? this.options.idleTimeout : 4 * 60 * 1000;
this.logger = shared.getLogger(this.options, {
component: this.options.component || 'smtp-pool'
});
@@ -448,7 +451,9 @@ class SMTPPool extends EventEmitter {
// the error paths hand over the error alone
const done = callback;
const auth = new PoolResource(this).auth;
this.getSocket(this.options, (err, socketOptions) => {
// the proxy handshake, if any, counts against connectionTimeout as well
const connectStartedAt = Date.now();
this.getSocket(Object.assign({}, this.options, { connectStartedAt }), (err, socketOptions) => {
if (err) {
return done(err);
}
@@ -465,6 +470,7 @@ class SMTPPool extends EventEmitter {
options = Object.assign(shared.assign(false, options), socketOptions);
}
const connection = new SMTPConnection(options);
connection._connectStartedAt = connectStartedAt;
let returned = false;
connection.once('error', err => {
if (returned) {