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. It is set to 1024 #389

Open
asolonytskyi opened this issue Jun 10, 2024 · 0 comments

Comments

@asolonytskyi
Copy link

Hi! Found interesting issue with websocket server. When server working in Docker.

Sometimes get next error:

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 1024.
 --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.

Preconditions:

  • command: websockets:serve
  • php: 8.1.16
  • Linux: 5.10.215-203.850.amzn2.x86_64
  • Docker image: php:8.1.16-fpm-bullseye

I tried next:

  1. recompilate php with param --enable-fd-setsize=65536
  2. up ulimit
  3. up filediscriptor on server

But steal doesn't work..

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