Closed Jun10ng closed 7 months ago
- I think driver should return an error like timeout instead of invalid connection.
It is breaking change. It requires strong reason than "I think".
2. In this case, shall we wait the delay packet or just fail it ?
I don't know why you see timeout because no reproduce step.
- I think driver should return an error like timeout instead of invalid connection.
It is breaking change. It requires strong reason than "I think".
- In this case, shall we wait the delay packet or just fail it ?
I don't know why you see timeout because no reproduce step.
- You may need fix your network or server configuration.
- You may need to remove readTimeout client setting.
Thanks for the reply.
readtimeout
had run out due to network congestion. Let me think how to write test case to reproduce that network problem.My confusion is that the connection Application using is not invalid, but the logs and errors show that it's an invalid connection.
Connection facing timeout error is invalid connection.
Connection facing timeout error is invalid connection.
That's a good point. thanks.
https://github.com/go-sql-driver/mysql/blob/743e263bab87912dfb61789f36c21d9685887c76/packets.go#L28C1-L41C1
I saw that my application would return invalid connection error when using mysql, I thought it was caused by using invalid expired mysql connection, but when I search the network logs, I found the logs of reading packet return timeout, as below.
In this case, shall we wait the delay packet or just fail it ?