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

stream_socket_accept always false #2

Open
lindnerdaniel opened this issue Feb 23, 2022 · 1 comment
Open

stream_socket_accept always false #2

lindnerdaniel opened this issue Feb 23, 2022 · 1 comment

Comments

@lindnerdaniel
Copy link

Hi,

I running PHP 8.0 on Ubuntu machine. My socket (using FreeDSx/ldap LdapServer) always quit after starting.
After short debugging: The timeout in stream_socket_accept fails. After removing this Parameter, the socket running.

src/FreeDSx/Socket/SocketServer.php - Line 126:
$socket = @\stream_socket_accept($this->socket, $timeout); -> $socket = @\stream_socket_accept($this->socket);

Any idea why?

BR

Daniel

@ChadSikorra
Copy link
Contributor

Hi @mdll . Apologies for such a late response, personal life has been quite busy lately.

What is the configuration you're using the launch the LdapServer class? Are you using the default port? If you're using the default port, you'd need to run the code as a user that can bind / listen on port 389 (typical user does not have these permissions). Or perhaps the port is being restricted in some other way.

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