Open
Description
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?