-
Notifications
You must be signed in to change notification settings - Fork 66
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
Not enough data in buffer #123
Comments
@yanmandev Thanks for reporting, this shouldn't have happened! Unfortunately, we can not currently reproduce the problem you're seeing. Can you give us some more details about when this problem occurs and how this can be reproduced? Which platform are you using etc.? |
My project runs on digitalocen servers (4 GB Memory / 80 GB Disk / FRA1 - Ubuntu 18.04.3 (LTS) x64). Mysql version 5.7.31.
|
I'm still hoping for a simplified script to reproduce this. I've personally been running this project in production for years and we're not aware of any such issues. If you can help us pinpoint any issues, I'm happy to take a look. In the meantime, I'm not sure there's much we can do unfortunately. |
Closing this due to a lack of feedback, as we can not reproduce this. Please come back with more details if this problem persists and we can reopen this 👍 |
Just ran into the same issue (running with Framework X):
This only occurs if a certain sequence of queries is sent. If I restart the server in between, the affected query runs ok. I'm accessing the repository with the affected query from different controllers and then it breaks. If I access it multiple times from the same controller, all is ok. Another strange thing is if I complicate the query a bit, the query just never returns and the whole connection is stuck instead of throwing the above mentioned error message. The query itself is very basic and I can't see anything wrong with it at all. If I always use a new db connection, all is fine. So I'd assume some internal state gets messed up on certain occasions. |
Small update: To me it looks like that some packets stay in the buffer even after queries are completed (like I found that in the function |
Looks like I was using Fibers wrong (shout-out to @clue) and this caused the issue, so from my side all is ok now. |
I've helped @pfk84 to debug the error above and could eventually track this down to an incorrect usage of reactphp/async and not an error in this MySQL implementation. The problem boiled down to calling Along the way, I've also spent a fair amount of time analyzing the MySQL parser and could indeed find a problem that turned out to be unrelated to @pfk84's error but could potentially have caused @yanmandev's original report. I've filed #158 to fix this issue. Together with this analysis, you're looking at ~8 hours of work, enjoy! |
This error occurs periodically in the file Buffer.php
Any ideas how I can solve it?
In Buffer.php line 56:
Not enough data in buffer to read 1 bytes
The text was updated successfully, but these errors were encountered: