-
Notifications
You must be signed in to change notification settings - Fork 335
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
EndOfStreamException in MySqlSession.ConnectAsync #388
Comments
What MySQL Server software and version are you connecting to? On what OS? |
Environment: Ubuntu 16.04 |
Judging from the exception (specifically, |
I saw that too, header packet(4 bytes) is corrupted. This issue happening on production since the load is high, so taking packet data is non trivial task for me. i will try to do some load test in local environment and see if i can reproduce and setup wireshark, mean time if you get any hint let me know. |
Do you have any kind of proxy (ProxySQL, HAProxy, etc.) between your .NET Core application and MySQL Server? Are you running MySQL Server 5.7.20 or an earlier release? Are you using |
we use haproxy to switch between prmiary and seconday master(2 master 1 slave setup)
"connectionString": "Server=xxxxx;Uid=xxxx;Pwd=xxxxx;Database=xxxx;Maximum Pool Size=40;Connect Timeout=120;Connection Lifetime=240;"
Would you confirm you are throwing the exception of type System.IO.EndOfStreamException, i guess right it is of generic exception with error message.
|
Suggested troubleshooting steps:
|
sslmode=none completely gave weird response for me, so i am not using it. production is not accepting without haproxy. |
From all the information you've provided, it seems like this is a server issue (responding with invalid data). Would the most helpful thing be for MySqlConnector to wrap the |
thanks, that will be help full. Appreciate your time spending on this
issue.
On Fri, Nov 10, 2017 at 2:41 PM Bradley Grainger ***@***.***> wrote:
From all the information you've provided, it seems like this is a server
issue (responding with invalid data).
Would the most helpful thing be for MySqlConnector to wrap the
EndOfStreamException in an MySqlException so you can catch it and handle
it like any other connection failure (timeout, etc.)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#388 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABDBllunhrWZjtFUf7IjGXGKVBgetsUNks5s1NEvgaJpZM4QRcsI>
.
--
Thanks,
Gomathinayagam (Gomes)
Ph : (847) 371 1464
Linkedin: in.linkedin.com/in/gomesnayagam/
Blog : www.zerothoughts.in
|
Improved in 0.31.0. |
@GomesNayagam writes:
can you reopen this issue @bgrainger
i am getting the same exception "Attempted to read past the end of the stream" now with 0.28.0 below are the call stack from dot net core library
(split from #124)
The text was updated successfully, but these errors were encountered: