We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
client package 每次调用 Close() 方法后查看数据库连接已关闭,但是mysql err log 日会有一条日志输出。Got an error reading communication packets
func (s *Server) Close() { if s.conn != nil { s.conn.Close() } }
操作系统centos 7 MySQL 5.7.22 与 5.8 查看MySQL 配置 connect_timeout = 28800 interactive_timeout = 28800 wait_timeout = 28800 max_allowed_packet=256M
The text was updated successfully, but these errors were encountered:
func (c *Conn) Close() error { if err := c.writeCommandUint32(COM_QUIT, c.connectionID); err != nil { return errors.Trace(err) } return c.Conn.Close() }
修改了client package Close 方法 添加主动COM_QUIT if err := c.writeCommandUint32(COM_QUIT, c.connectionID); err != nil { return errors.Trace(err) }
Sorry, something went wrong.
Looks like this was fixed in 7263925 (from #787 )
No branches or pull requests
client package 每次调用 Close() 方法后查看数据库连接已关闭,但是mysql err log 日会有一条日志输出。Got an error reading communication packets
func (s *Server) Close() {
if s.conn != nil {
s.conn.Close()
}
}
操作系统centos 7
MySQL 5.7.22 与 5.8
查看MySQL 配置
connect_timeout = 28800
interactive_timeout = 28800
wait_timeout = 28800
max_allowed_packet=256M
The text was updated successfully, but these errors were encountered: