pusher / pusher-http-php

PHP library for interacting with the Pusher Channels HTTP API
https://pusher.com/docs/server_api_guide
1.4k stars 306 forks source link

You MUST recompile PHP with a larger value of FD_SETSIZE. It is set to 1024 #389

Open asolonytskyi opened 1 month ago

asolonytskyi commented 1 month ago

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:

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