[erlang-questions] odbc error

Andrew Thompson andrew@REDACTED
Sun Nov 14 22:33:34 CET 2010

On Sun, Nov 14, 2010 at 06:45:01PM +0100, info wrote:
> Hello,
> I received this message in a gen_server:
> "odbc MySQL server has gone away SQLSTATE IS: 08S01 "
> I suppose that the defaut idle time of 8 hours has expired.
> What is the best action to do with erlang+odbc:
> - restart the server ?
> - catch the error and restart odbc ?
I had a seperate process dealing with ODBC which just crashed in this
case and got restarted by a supervisor. You should be able to just
restart ODBC, though (or rather just reconnect, since it should already
be started).


More information about the erlang-questions mailing list