Skip to content

Gracefully close socket on shutdown #81

@NfNitLoop

Description

@NfNitLoop

I'm (somewhat hackily) just running FeoBlog in a terminal window. To shut it down, I press Ctrl-C. It seems that just forces Actix-Web to exit its event loop and end the program. If I try to restart the process, for a minute or so it can't start because the port is still "in use".

Probably need to have it gracefully close the socket on shutdown. I remember this being a thing that wasn't yet implemented in Tide. Hopefully Actix-Web has a better story here.

Oddly, I don't remember this being an issue when developing in Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions