Skip to content

Should not use random free port in production if main is busy #222

@jonahsnider

Description

@jonahsnider

Environment

listhen v1.9.1

Reproduction

  1. Run listhen in production mode when the specified port is busy

Describe the bug

If my server starts in production and can't bind to the desired port, it should throw an error and crash the program. I don't want it to bind to some random free port. That's maybe okay in development, but in a production environment that just means the app will boot up and ignore all requests to the actual port for the service.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions