-
Notifications
You must be signed in to change notification settings - Fork 341
MySqlProtocolException: Packet received out-of-order #496
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
Comments
Do you have a small, self-contained repro that demonstrates the problem? Alternatively, can you get a Wireshark packet capture of the DB connection leading up to the crash? |
I have a problem like this.
|
#267 is like this,but has be closed |
@dimter2016 Can you get a packet capture (with Wireshark or similar) for when the problem happens? |
Hello,In these days,I pull out that piece of code,but I can't reproduce that problem.Our entire project is using mysqlconnector,only here is this exception.I will update mysqlconnector to 0.40.3, and then I will see if this problem still occurs.Follow-up situation I will explain here.Thanks. |
@bgrainger We have updated the Mysqlconnector to 0.40.3, but I found this problem through the log, so I repeatedly checked the code, found that the method of executing three SQL (three SQL execution is a different method) is the Async method, but we did not use await to make the call, may be the question Problems caused by. I'll look at it again to see if it will happen again and continue to update it here. |
It is not permitted to have multiple in-flight async operations on the same connection at the same time; you do have to However, you should also get a more helpful exception message (better than |
This problem has been solved. |
I used it in the dispose of my activity log service, so that this would not interfere with the response time to the frontend. I mistakenly used ExecuteAsync, without using await. It happened that aspnet tried to kill the instance before finishing the execution of the query, then this problem was triggered. I switched to Execute, without async and it solved the problem. |
Uh oh!
There was an error while loading. Please reload this page.
Hello,I get a exception in the use of mysqlconnector.
mysqlconnector version:0.38
mysql version:5.5.58
Exception:
The main exception message is
Packet received out-of-order. Expected 2; got 115.
,but sometimes the "got" numbers change:Packet received out-of-order. Expected 2; got 1.
My business scenario is to execute three delete statements,contains subqueries.such as
delete form user where userid in (select ...)
Could you give me a suggestion or solution?
The text was updated successfully, but these errors were encountered: