Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Document need for calling DRb.start_service on after fork hooks #514

Closed
wants to merge 1 commit into
from

Conversation

2 participants

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.

Document need for calling DRb.start_service on after fork hooks
DRb.start_service must be called at least once per process

@zzak zzak closed this in e902131 Jan 31, 2014

Member

zzak commented Jan 31, 2014

@rosenfeld Thank you.

Thank you :-)

mmasaki pushed a commit to mmasaki/ruby that referenced this pull request Feb 2, 2014

* lib/drb/drb.rb: [DOC] Add note about start_service for each process
  Based on a patch by @rosenfeld [Fixes GH-514] [ci skip]
  ruby#514


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

zzak added a commit that referenced this pull request Feb 6, 2014

* lib/drb/drb.rb: [DOC] Add note about start_service for each process
  Based on a patch by @rosenfeld [Fixes GH-514] [ci skip]
  #514


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

mrkn pushed a commit to mrkn/ruby that referenced this pull request Feb 15, 2014

* lib/drb/drb.rb: [DOC] Add note about start_service for each process
  Based on a patch by @rosenfeld [Fixes GH-514] [ci skip]
  ruby#514


git-svn-id: svn+ssh://svn.ruby-lang.org/ruby/trunk@44784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

funky-bibimbap added a commit to funky-bibimbap/ruby that referenced this pull request Mar 2, 2014

* lib/drb/drb.rb: [DOC] Add note about start_service for each process
  Based on a patch by @rosenfeld [Fixes GH-514] [ci skip]
  ruby#514


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment