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

PHP CLI hangs after executing the example code. #712

Open
ThePureCC opened this issue Feb 4, 2019 · 6 comments
Open

PHP CLI hangs after executing the example code. #712

ThePureCC opened this issue Feb 4, 2019 · 6 comments
Labels

Comments

@ThePureCC
Copy link

Running everything on raspberry pi 3b with latest updates.

Trying to run the example code from the README file.

$ php chat.php

It gets stuck here forever after executing the php command.

No error, no nothing.

Anything I'm doing wrong?

@mbonneau
Copy link
Member

Are you referring to this example: http://socketo.me/docs/hello-world?

@paamayim
Copy link

paamayim commented Mar 1, 2019

@mbonneau I'm having the same issue. Regarding both that example and the current one in this project's README.

Running the script from CLI, as well as with php error reporting on, ... and it just ... nothing. blank. it just hangs.

@ThePureCC
Copy link
Author

@mbonneau Thanks for the reply, I gave that up hours later. All codes related to the library hangs in CLI for no reason. Exactly what @paamayim is experiencing as well. I went on to other scripts.

@paamayim
Copy link

paamayim commented Mar 2, 2019

@pureche I got everything to work with the example script from socketo, modified to my needs. I think I had incorrectly assumed that there would be an opening CLI status message or something. Maybe that's what you're experiencing as well.
There's no message at all until a client connects. Maybe this is normal, although it's not helpful.

@ThePureCC
Copy link
Author

ThePureCC commented Mar 2, 2019

@paamayim I actually tried to put some echos in there to just make sure it's not hanging, and mine was ... maybe we had different problems. idk, but congrats. Glad to hear yours is working.

@mbonneau
Copy link
Member

mbonneau commented Mar 8, 2019

@pureche - If you are running the chat-server.php, that is not designed to exit. Everything happens in $server->run().

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

3 participants