Closed Hocuri closed 3 years ago
Ok maybe it's not a bug at all. I found std::io::error::ErrorKind::WouldBlock which becomes "operation would block" (it was in ~/.rustup). And apperently WouldBlock can mean that the operation timed out which would be normal on flaky network conditions. I'll see if it also sometimes happens with non-flaky network.
Now this CI failed: https://app.circleci.com/pipelines/github/deltachat/deltachat-core-rust/6700/workflows/d1ec9ee6-98f1-4d02-baca-a6fa7064dc84/jobs/27395.
The log also contained the line
4.35 [events-ac2] DC_EVENT_WARNING data1=0 data2=src/imap/mod.rs:385: try_setup_handle: async_native_tls: operation would block
but apparently DC succeeded with another IMAP config later.
@dignifiedquire @link2xt do you know anything about this? Even if it's just a timeout we should still try to improve the error message.
Full log:
Holger just told me that there already is an issue here: https://github.com/async-email/async-native-tls/issues/23
this is related to https://github.com/async-email/async-native-tls/issues/23 i guess and is not gone with the use of async-std 1.6.5
On Thu, Oct 01, 2020 at 09:40 -0700, Hocuri wrote:
Now this CI failed: https://app.circleci.com/pipelines/github/deltachat/deltachat-core-rust/6700/workflows/d1ec9ee6-98f1-4d02-baca-a6fa7064dc84/jobs/27395.
The log also contained the line
4.35 [events-ac2] DC_EVENT_WARNING data1=0 data2=src/imap/mod.rs:385: try_setup_handle: async_native_tls: operation would block
but apparently DC succeeded with another IMAP config later. @dignifiedquire @link2xt do you know anything about this? Even if it's just a timeout we should still try to improve the error message.-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/deltachat/deltachat-core-rust/issues/1953#issuecomment-702258975
Looks like first two connections (SMTP and IMAP) timed out, but since IMAP has two entries for testrun.org in provider database, IMAP did a second attempt.
Here is a comment saying bug should be fixed by updating async-io from 1.1.4 to 1.1.6: https://github.com/async-email/async-native-tls/issues/23#issuecomment-702336439
SMTP: failed to connect: io: operation would block
; i'd say it's only when I have flaky network. Happens since about 1-2 weeks."SMTP: failed to connect" comes from
ConnectionFailure
error (the string appears nowhere else in the repo). This error is only used here: https://github.com/deltachat/deltachat-core-rust/blob/637d2661e801b91c1ebd7bc2f158d8f80e5ce72b/src/smtp/mod.rs#L211-L212Update: I found where the "io:" comes from: It has to be
async-smtp-0.3.4/src/smtp/error.rs
line 38: