[WO-567] use multithreaded tls

This commit is contained in:
Felix Hammerl 2014-10-13 19:11:04 +02:00
parent 6e1ad91f6a
commit c120818792
2 changed files with 10 additions and 0 deletions

View File

@ -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/',

View File

@ -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;