Skip to content

Commit 4286d24

Browse files
committed
feat: increase TCP timeouts from 30 to 60 seconds
GitHub Action tests sometimes fail with TCP connection timeouts, especially for macOS.
1 parent 1165370 commit 4286d24

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/imap/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ use crate::net::tls::wrap_tls;
1717
use crate::socks::Socks5Config;
1818
use fast_socks5::client::Socks5Stream;
1919

20-
/// IMAP write and read timeout.
21-
pub(crate) const IMAP_TIMEOUT: Duration = Duration::from_secs(30);
20+
/// IMAP connection, write and read timeout.
21+
pub(crate) const IMAP_TIMEOUT: Duration = Duration::from_secs(60);
2222

2323
#[derive(Debug)]
2424
pub(crate) struct Client {

src/smtp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ use crate::scheduler::connectivity::ConnectivityStore;
2727
use crate::socks::Socks5Config;
2828
use crate::sql;
2929

30-
/// SMTP write and read timeout.
31-
const SMTP_TIMEOUT: Duration = Duration::from_secs(30);
30+
/// SMTP connection, write and read timeout.
31+
const SMTP_TIMEOUT: Duration = Duration::from_secs(60);
3232

3333
#[derive(Default)]
3434
pub(crate) struct Smtp {

0 commit comments

Comments
 (0)