Skip to content

ValueError: filedescriptor out of range in select on macOS #557

Open
@peteboothroyd

Description

@peteboothroyd

When using KazooClient (on macOS) I occasionally get the error: ValueError: filedescriptor out of range in select thrown from the _select method of handlers/threading.py (specifically the line return select.select(*args, **kwargs)).

I believe this occurs when a file descriptor has a value which is too large, which is not necessarily when there are too many open files (ie the max file descriptor number > number of open files). This has been fixed by using epoll for Linux machines but not on macOS where epoll is not available. Please could you provide an equivalent method which uses kqueue when available?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions