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

fixes socket_select interrupted exception #32

Merged
merged 1 commit into from
Oct 3, 2022
Merged

fixes socket_select interrupted exception #32

merged 1 commit into from
Oct 3, 2022

Conversation

henzeb
Copy link
Contributor

@henzeb henzeb commented Oct 3, 2022

As described in #31, when using pcntl_signal, socket_select may get interrupted which will cause an ErrorException being thrown.

The message is: socket_select(): unable to select [4]: Interrupted system call.

With this fix, the ErrorException is catched, and when the error number is 4 (the interrupted system call), the while loop is continued and the socket_select is run again.

I have no tests, as this is very difficult to test as this appears to be occurring randomly. I have tested it manually however and the error seems to be gone. Also the existing unit tests still succeeds.

@freekmurze freekmurze merged commit d0232e9 into spatie:main Oct 3, 2022
@freekmurze
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants