Forum: Ruby on Rails A new server has gone away message

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
2017657725dd1bce83dc8a1e2e991d04?d=identicon&s=25 Luke Ivers (technodolt1)
on 2007-04-05 18:53
(Received via mailing list)
Ok, so, I've read ticket #428 forwards, backwards, and sideways... and
until a few days ago, had never had a problem.
However, I now have one.

One of my applications, due to a plugin, was accessing the DB during the
loading of routes.rb... which is apparently before the reconnect!
message is
sent to the connection.  I was coming up with the exact same problems
addressed by ticket #428 on the rails trac.  I put an easy fix into the
plugin by directly calling reconnect! unless active?, but I was
wondering if
this process shouldn't take place before loading routes.rb by default,
so as
to avoid having this problem in the future.

Any comments?
This topic is locked and can not be replied to.