Skip to content

can't restart the DefaultHTTPServer #84

@robertpub

Description

@robertpub

issue:
step 1: start the server
step 2: stop the server
step 3: start the same server.
it will fail.

it seems like the stop func does not set acceptScoket to nil so it will failed to start again.

public func start() throws {
guard acceptSocket == nil else {
logger.error("Server already started")
return
}

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