ruby/ruby — pull request #514 by rosenfeld (2014-01-24 15:42:01+00:00)
Title: Document need for calling DRb.start_service on after fork hooks

DRb.start_service must be called at least once per process

I'm not quite sure if this is true or if this is the proper way of handling with this problem.

But after several hours of investigation we could finally track down why our request didn't respond in some scenarios involving Unicorn and even Puma in daemonized mode.

I suspect the only reason is that the call is needed to be done at least once per process and this has made the trick for us.

I don't remember if Ruby has now any specific after_fork official hook so that this could be fixed on DRb code directly, but here's one suggestion on how to tackle this problem.