You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the introduction of #1263 which adds support for multiple rows affected and insert IDs being returned for multi-statement requests, there are some conditions that lead to a memory loitering issue (both must be true):
If the connection is reused
If the protocol path involved results in an OK Packet (e.g. a resultSetHeaderPacket)
Notably, the Query path in the driver implementation is affected by this second condition. Any extremely long running process that continually reuses a connection and uses the Query path (as opposed to the Exec path) will experience this issue.
Example code
for {
iferr:=conn.Ping(); err!=nil {
returnerr
}
time.Sleep(time.Second)
}