Forking in Rails => Boom. Mysql has gone away


We are running Rails on (free website monitoring
service w/ ajax and RSS feeds) and we are trying to fork a process
within a model e.g. and continue the query the model stored data e.g.

in model server.rb…

==> 1111

fork {

==> Boom. Mysql has gone away…

Is there a way to fork in a way to keep the database connection?

[email protected]

You’ll need to establish a new connection in the forked process - that
will keep them separate.



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs