deltachat-core-rust
deltachat-core-rust copied to clipboard
Extemely unstable server connection, likely unable to connect
Device: bq Aquaris X OS: LineageOS 16.0 (Android 9) Mail account host: GMail
Delta Chat seems to use extremely unstable library for making connections with mail server. My setup uses OAuth2 and works fine. However in most cases I have to kill Delta Chat many times before it finally gets connected to GMail servers. Usually throws error "Network unreachable (os error 101)" even though I can connect to these servers with no problem from browser or command line (android terminal). Can it be fixed soon? I really enjoy using Delta Chat, because it is actively maintained, secure, the idea of storing messages on mail server of my choice and overall experience of using it. However issues with unstable or even sometimes impossible connection with mail server, even though I can reach them from other apps, makes use of this app difficult.
Best regards
@tomekdev Could you provide a log of when this happens? This seems to be a problem with your network (is it a mobile operator?) and some router on the path sending ICMP errors. If it works after restarting the app, we can probably make DC retry after some timeout in case of error, but a log would be helpful to see where the error is returned.
@link2xt I'll provide the log next time this would happen. And yes, it is mobile operator (I mainly use cellular data)
Where does the "Network unreachable (os error 101)" error show up? Is it in the connectivity view?
Yes, it shows up in connectivity view. Sometimes it is stuck and shows "Connecting..." with yellow dots near "INBOX", "Delta Chat" and "Sent". When it is stuck I have to disable cellular data and re-enable it and then in most cases Delta Chat connects quite quickly. However when Delta Chat gets stuck, in the same time I can log in to GMail and browse other websites without issues.
I assume this is fixed by #3820, reopen if the problem still exists on the latest Delta Chat version.