Skip to content

Puma takes a really long time to quit when debug gem is loaded #485

@Mathieuu

Description

@Mathieuu

On the puma repo, I was told to post the issue here. I am not sure which gem needs a fix though:

See puma/puma#2796

Describe the bug

Puma application takes 20 seconds to quit when it has two workers configured with fork_worker and the debug gem is loaded.

Puma config:

Please copy-paste your Puma config AND your command line options here.

To Reproduce

See that repo: https://github.com/Mathieuu/DebugPuma

I scaffold a rails app with rails new app --api and did the following changes.

Launch the server with rails s then press ctrl+c to exit the process. It hangs for 20 seconds.
Remove debug from the gemfile or fork_worker from config/puma.rb and it exits instantly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions