Mailspring/packages/isomorphic-core
Juan Tejada e1f1b22ee2 [local-sync] Ensure all imap operations are wrapped with timeout
Summary:
Specifically, these imap connections have been known to hang when you close your laptop or go offline/online, even though we are passing a `socketTimeout` to node-imap. When they hang, everything freezes because the promise waiting for the result never resolves.

`_createConnectionPromise` wraps the operations with a timeout we implemented ourselves, and correctly rejects on timeout.

This commit wraps other imap operations that were missing. (I notices because I encountered the hanging on one of these operations)

Test Plan: manual

Reviewers: evan, mark, spang

Reviewed By: spang

Differential Revision: https://phab.nylas.com/D3720
2017-01-18 10:24:26 -08:00
..
src [local-sync] Ensure all imap operations are wrapped with timeout 2017-01-18 10:24:26 -08:00
index.js [local-sync]: Move sendmail-client and errors to isomorphic-core 2016-12-15 12:29:56 -08:00
package.json Update sequelize point version everywhere 2017-01-04 15:47:16 -08:00