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

unable to select [4]: Interrupted system call #10

Closed
Furgas opened this issue Mar 13, 2018 · 2 comments
Closed

unable to select [4]: Interrupted system call #10

Furgas opened this issue Mar 13, 2018 · 2 comments
Labels

Comments

@Furgas
Copy link
Contributor

Furgas commented Mar 13, 2018

When using automatic respawn a PHP warning is triggered in SimpleSocket.php:66, originating from WorkerPool.php:637:

socket_select(): unable to select [4]: Interrupted system call

Based on this answer from SO, I guess that pcntl_alarm is interferring with socket_select.

@qxsch qxsch closed this as completed in dc6ac0b Mar 25, 2018
@qxsch
Copy link
Owner

qxsch commented Mar 25, 2018

Thank you for your ticket. The issue should be fixed.

@qxsch qxsch added the bug label Mar 25, 2018
@Furgas
Copy link
Contributor Author

Furgas commented Mar 25, 2018

I guess it won't remove the warning. I will later try an approach with silencing operator on socket_select and use socket_last_error to check for this particular error (SOCKET_EINTR), and only then repeat the socket_select (clearing the error first, with socket_clear_error). I'm not yet sure what to do when the error is a different one - maybe manually trigger a warning with a message obtained from socket_strerror, to preserve the original behaviour.

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

2 participants