mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 10:52: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'],
|
src: ['openpgp/openpgp.js', 'openpgp/openpgp.worker.js', 'forge/forge.min.js'],
|
||||||
dest: 'dist/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: {
|
font: {
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: 'src/font/',
|
cwd: 'src/font/',
|
||||||
|
@ -226,6 +226,9 @@ ctrl.onConnect = function(callback) {
|
|||||||
// add the maximum update batch size for imap folders to the imap configuration
|
// add the maximum update batch size for imap folders to the imap configuration
|
||||||
credentials.imap.maxUpdateSize = config.imapUpdateBatchSize;
|
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 pgpMailer = new PgpMailer(credentials.smtp, ctrl._pgpbuilder);
|
||||||
var imapClient = new ImapClient(credentials.imap);
|
var imapClient = new ImapClient(credentials.imap);
|
||||||
imapClient.onError = onConnectionError;
|
imapClient.onError = onConnectionError;
|
||||||
|
Loading…
Reference in New Issue
Block a user