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 · 1 comment
Labels

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

Copy link

stale bot commented Feb 1, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you'd like this issue to stay open please leave a comment indicating how this issue is affecting you. Thank you.

@stale stale bot added the wontfix label Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant