-
Notifications
You must be signed in to change notification settings - Fork 68
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
unsubscribe error #74
Comments
Would you mind sending a PR? |
And please include a small test case. |
sorry, what is PR? And what test case do you need? There is a 2 line example code that will give you an error. |
PR = pull request |
The test case ensures it stays fixed and doesn't break other code. |
I'm sorry, but i cant see how to send PR. Maybe I do not have priviliges? I'm new to github. Just noticed a bug and fixed it for myself, then shared it in these issues. |
The most simple way is clicking 'edit' directly at the files on github and doing your changes there. It would fork the repo and automatically create a branch with your changes (patch-X) and a PR. The longer:
|
PR done, thanks for such a detailed description. |
Example code:
This will cause:
If you do not do
unsubscribe()
, subscribe connection will nor be closed and you will get "too many files open" in several hours (depending on your sleeptime).Here is the fix on code:
Channel.php:462
Channel.php:471
There was an error because with unsubscribe the channel is removed from arrays with previous line
and getConnectionByAlias can not find it (it is already removed).
$connection is returned by methods and there is no need to search for it again.
The text was updated successfully, but these errors were encountered: