Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select(..) FD 1024 limit #104

Open
mailamauro888 opened this issue Jul 9, 2021 · 0 comments
Open

select(..) FD 1024 limit #104

mailamauro888 opened this issue Jul 9, 2021 · 0 comments

Comments

@mailamauro888
Copy link

mailamauro888 commented Jul 9, 2021

Hi, for its own design, select call can handle up to 1024 elements, no matter what ulimit says.
WARNING: select() can monitor only file descriptors numbers that are less than FD_SETSIZE (1024)—an unreasonably low limit for many modern applications—and this limitation will not change. All modern applications should instead use poll(2) or epoll(7), which do not suffer this limitation.
More than 1024 connections makes select to crash within the websocket.
Can it be convertible in pool() or epool()??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant