Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't restart the DefaultHTTPServer #84

Open
robertpub opened this issue Oct 9, 2019 · 0 comments
Open

can't restart the DefaultHTTPServer #84

robertpub opened this issue Oct 9, 2019 · 0 comments

Comments

@robertpub
Copy link

robertpub commented Oct 9, 2019

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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant