feat(storage): add comprehensive tests for StorageManager with memory, filesystem, and custom function backends
feat(email): implement EmailSendJob class for robust email delivery with retry logic and MX record resolution feat(mail): restructure mail module exports for simplified access to core and delivery functionalities
This commit is contained in:
@@ -342,14 +342,14 @@ export class ConnectionManager implements IConnectionManager {
|
||||
// Explicitly set socket buffer sizes to prevent memory issues
|
||||
socket.setNoDelay(true); // Disable Nagle's algorithm for better responsiveness
|
||||
|
||||
// Set limits on socket buffer size if supported by Node.ts version
|
||||
// Set limits on socket buffer size if supported by Node.js version
|
||||
try {
|
||||
// Here we set reasonable buffer limits to prevent memory exhaustion attacks
|
||||
const highWaterMark = 64 * 1024; // 64 KB
|
||||
// Note: Socket high water mark methods can't be set directly in newer Node.ts versions
|
||||
// Note: Socket high water mark methods can't be set directly in newer Node.js versions
|
||||
// These would need to be set during socket creation or with a different API
|
||||
} catch (error) {
|
||||
// Ignore errors from older Node.ts versions that don't support these methods
|
||||
// Ignore errors from older Node.js versions that don't support these methods
|
||||
SmtpLogger.debug(`Could not set socket buffer limits: ${error instanceof Error ? error.message : String(error)}`);
|
||||
}
|
||||
|
||||
@@ -496,14 +496,14 @@ export class ConnectionManager implements IConnectionManager {
|
||||
// Explicitly set socket buffer sizes to prevent memory issues
|
||||
socket.setNoDelay(true); // Disable Nagle's algorithm for better responsiveness
|
||||
|
||||
// Set limits on socket buffer size if supported by Node.ts version
|
||||
// Set limits on socket buffer size if supported by Node.js version
|
||||
try {
|
||||
// Here we set reasonable buffer limits to prevent memory exhaustion attacks
|
||||
const highWaterMark = 64 * 1024; // 64 KB
|
||||
// Note: Socket high water mark methods can't be set directly in newer Node.ts versions
|
||||
// Note: Socket high water mark methods can't be set directly in newer Node.js versions
|
||||
// These would need to be set during socket creation or with a different API
|
||||
} catch (error) {
|
||||
// Ignore errors from older Node.ts versions that don't support these methods
|
||||
// Ignore errors from older Node.js versions that don't support these methods
|
||||
SmtpLogger.debug(`Could not set socket buffer limits: ${error instanceof Error ? error.message : String(error)}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user