-
Notifications
You must be signed in to change notification settings - Fork 2.3k
mysql driver freeze, and hang the query progress,Does this normal? #392
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
|
|
You don't write about what did you do. |
The common DB.Query, DB.Exec sql command. nothing serious |
strace output you wrote looks very common for Go's runtime. What query do you send? |
I am wrote the same program using php, it works well with mysql. |
No one verify it until you share reproducible sample code.
Why? There are only two lines about mysql in your strace.
First line is receiving OK packet. You should be able to fetch results if your program doesn't have bugs. Another strace output are meaningless. futex and epoll_wait is used in Go's runtime. |
this package, mysql go sql driver using network library to communicate mysql server via tcp protocol. |
As strace output said. the connection already timed out. |
I hope the IPConn.SetReadDeadline will helpful with my situation. |
@netroby Your strace doesn't include which syscall returns ETIMEDOUT.
It may not be related to mysql connection. |
For example, futex may return ETIMEDOUT and it's not related TCP. |
Your strace doesn't have important part. tcpdump is also good tool to know TCP state. But, reporting reproducible code is best. |
here is strace output
The text was updated successfully, but these errors were encountered: