Mailspring/packages/local-sync
Juan Tejada 3eb450e22c [local-sync] Make sure IMAPConnection times out correctly
Summary:
This commit passes down the `socketTimeout` option to node-imap. However, just
passing this option doesn't seem to work reliably, so this commit manually implements
the socketTimeout option for our IMAPConnection.

How it works is that basically every operation is wrapped with a timeout by
augmenting  the `createConnectionPromise` construct that already existed.

Test Plan:
Locally, tested by sleeping computer and turning off wifi. The
connection will successfully error and be restarted. It will reconnect when the
network is available again

Reviewers: khamidou, halla, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3642
2017-01-11 16:48:10 -08:00
..
images
spec [local-sync] Give Nylas Mail messages a different Message-ID from API messages 2017-01-11 15:51:12 -08:00
src [local-sync] Make sure IMAPConnection times out correctly 2017-01-11 16:48:10 -08:00
stylesheets
main.es6
package.json [local-sync] Remove unused message update hook 2017-01-10 10:39:43 -08:00