I think there should be a reconnect policy to auto connect to the server
when connection is lost, especially the mysql binding support that, right?
Yeah, rails applications will do this transparently. We don't want
to have a solution that only works with mysql when the current one
works for all our supported databases.
I actually had 3 different people come up to me at MySQLConf and tell
me their AR connections were dropping like this and not reconnecting.
It might be something you want to check into (though I don't think
there's a verifiable way to test it).
I'll try to find out more information from those guys if I can find
their cards...
AR connections timeout and drop, that's how it is. Rails fixes this in a
filter. I believe it's documented.
That's why on our tt AIM bot I have to verify connections before each access
(but you knew that, jeremy ). As lifo says.
Having said that, there's no reason why the adapter *couldn't* support
a reconnect option, if it's in the mysql client lib. I'd be happy to
take patches for it.
However I certainly wouldn't want to roll our own reconnect-on-error
thing, retrying sql statements is a great way to lose friends and
invalidate data.