Skip to content

Use defaultselector instead of select #280

@NicolasLM

Description

@NicolasLM

On most systems, notably on Linux, select cannot work with file descriptors bigger than 1024.

If a user has many open sockets, even unrelated to IMAPClient, he won't be able to use idle_check.

We should use defaultselector instead. One issue is that this module is not available on Python 2.7.

We could either fallback to select for Python 2.7 or add a conditional dependency to selectors2.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions