mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-04 03:56:33 +08:00
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 |
||
---|---|---|
.. | ||
images | ||
spec | ||
src | ||
stylesheets | ||
main.es6 | ||
package.json |