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

You MUST recompile PHP with a larger value of FD_SETSIZE #155

Open
xrh527 opened this issue Jun 15, 2024 · 2 comments
Open

You MUST recompile PHP with a larger value of FD_SETSIZE #155

xrh527 opened this issue Jun 15, 2024 · 2 comments

Comments

@xrh527
Copy link

xrh527 commented Jun 15, 2024

Consumer reports an error after running for a period of time:
【DEBUG】【WARNING】:stream_select(): You MUST recompile PHP with a larger value of FD_SETSIZE.
It is set to 1024, but you have descriptors numbered at least as high as 1045.
--enable-fd-setsize=2048 is recommended, but you may want to set it
to equal the maximum number of open files supported by your system,
in order to avoid seeing this error again at a later date. at file:/easyswoole/vendor/bunny/bunny/src/Bunny/Client.php line:206

@WyriHaximus
Copy link
Collaborator

Hey, there is nothing you can do about that error when using the sync client in 0.5 as it uses an internal event loop built on the stream_select function. My advise would be to migrate to either 0.6 which is using the ReactPHP event loop and fibers. Or to the async client in 0.5 which also uses the ReactPHP event loop.

@WyriHaximus
Copy link
Collaborator

Completely forgot to mention that you will also need a event loop extension such as ext-uv and ext-ev.

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

2 participants