Skip to content

Implement graceful shutdown #27

@zeeshanabid

Description

@zeeshanabid

How can I implement graceful shutdown of the server?

I would like to capture SIGINT and SIGHUP signals and then I would like to stop listening for new connections. I would still like to process pending connections and after some TIMEOUT I would like to kill the server even if there are still some pending connections.

Can you help me in this matter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions