We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5df4abe commit 686cd86Copy full SHA for 686cd86
imap-core/lib/imap-connection.js
@@ -13,7 +13,9 @@ const EventEmitter = require('events').EventEmitter;
13
const packageInfo = require('../../package');
14
const errors = require('../../lib/errors.js');
15
16
-const SOCKET_TIMEOUT = 5 * 60 * 1000;
+// Shift timeout by 37 seconds (randomly selected by myself, no specific meaning) to
17
+// avoid race conditions where both the client and the server wait for 5 minutes
18
+const SOCKET_TIMEOUT = 5 * 60 * 1000 + 37 * 1000;
19
20
/**
21
* Creates a handler for new socket
0 commit comments