Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C-extension locks the GVL, causing timeouts #753

Open
nateberkopec opened this issue Nov 3, 2020 · 0 comments
Open

C-extension locks the GVL, causing timeouts #753

nateberkopec opened this issue Nov 3, 2020 · 0 comments

Comments

@nateberkopec
Copy link

Puma users frequently experience problems with Byebug which are solved by increasing puma's worker timeout. The worker timeout is intended to kill Puma workers which do not periodically send the master process a heartbeat reply.

The problem is:

  1. The heartbeat is implemented in Ruby
  2. Byebug's c-extension is not GVL-aware
  3. The heartbeat never gets sent, so Puma kills the worker, thus killing the debug session.

Workaround is here: rails/rails#40503

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant