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 Warning: Error while sending QUERY packet after 1 job #269
Comments
You need to close and reopen the connection when the job starts. Forking reuses everything from the parent process, including the MySQL connection. |
@danhunsaker, thanks mate. We were able to resolve the issue. |
@danhunsaker didnt get you, could you please elaborate more?
I am reopening the connection at start, still get a "error while sending query packet". Also, this isnt a packet size issue since it works fine if put in main php thread and not in resque. |
Reopening the connection needs to be done inside the |
I am getting this error, and i have been consistently looking for some solution to get this work around.
PHP Warning: Error while sending QUERY packet.
Even, i closed all mysql connections once the job is done, for the first time job gets done successfully.
Next time I get the above error I mentioned.
The text was updated successfully, but these errors were encountered: