Skip to content

IDLE keepalives are not sent frequently enough on Android when the app is suspended #6533

Open
@link2xt

Description

@link2xt

Delta Chat attempts to interrupt IDLE every 5 minutes:
https://github.com/deltachat/deltachat-core-rust/blob/81e9628ab79941adaa12de1e30cefb8d8d69b3f9/src/imap/idle.rs#L14-L20

However, this does not seem to happen because monotonic clock used almost everywhere does not advance when the app is suspended and boottime clocks which should be used instead are not available in Rust yet:

FairEmail apparently does not have such problems, but it is using Java APIs everywhere:
#6532 (comment)

The bug can be worked around by reducing imap_idle_notify_interval in Dovecot, but we need a fix on the client side:
#6532 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions