mirror of
https://github.com/moparisthebest/mail
synced 2024-11-22 17:02:17 -05:00
[WO-567] use multithreaded tls
This commit is contained in:
parent
6e1ad91f6a
commit
c120818792
@ -316,6 +316,13 @@ module.exports = function(grunt) {
|
||||
src: ['openpgp/openpgp.js', 'openpgp/openpgp.worker.js', 'forge/forge.min.js'],
|
||||
dest: 'dist/js/'
|
||||
},
|
||||
tls: {
|
||||
expand: true,
|
||||
flatten: true,
|
||||
cwd: 'node_modules/tcp-socket/src/',
|
||||
src: ['tcp-socket-tls-worker.js', 'tcp-socket-tls.js'],
|
||||
dest: 'dist/js/'
|
||||
},
|
||||
font: {
|
||||
expand: true,
|
||||
cwd: 'src/font/',
|
||||
|
@ -226,6 +226,9 @@ ctrl.onConnect = function(callback) {
|
||||
// add the maximum update batch size for imap folders to the imap configuration
|
||||
credentials.imap.maxUpdateSize = config.imapUpdateBatchSize;
|
||||
|
||||
// tls socket worker path for multithreaded tls in non-native tls environments
|
||||
credentials.imap.tlsWorkerPath = credentials.smtp.tlsWorkerPath = config.workerPath + '/tcp-socket-tls-worker.js';
|
||||
|
||||
var pgpMailer = new PgpMailer(credentials.smtp, ctrl._pgpbuilder);
|
||||
var imapClient = new ImapClient(credentials.imap);
|
||||
imapClient.onError = onConnectionError;
|
||||
|
Loading…
Reference in New Issue
Block a user