Closed
Description
I have a query that returns ~70.000 records and then in a simple loop I process each record. After some time (30-60 minutes) I get this error and the app dies:
[MySQL] 2014/09/28 04:22:01 packets.go:59: unexpected EOF
[MySQL] 2014/09/28 04:22:01 packets.go:336: Busy buffer
The query and the processing is very simple, something like this:
rows, err := db.Mysql.Query("select field1, field2, field3 from table1")
for i := 0; rows.Next(); i++ {
var field1, field2, field3 int
err = rows.Scan(&field1, &field2, &field3)
// bunch of processing...
}
In the loop itself I don't do any database related stuff.
Could this be a bug in the driver, or have I missed something?