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

restart closed server #1545

Closed
untitledlt opened this issue Nov 21, 2018 · 2 comments
Closed

restart closed server #1545

untitledlt opened this issue Nov 21, 2018 · 2 comments
Labels

Comments

@untitledlt
Copy link
Contributor

@untitledlt untitledlt commented Nov 21, 2018

Is it possible to restart closed server?
That's what i have tried:

const server = torrent.createServer();
server.listen(port); // server works now

setTimeout(() => {
    server.close(); // server closes, port gets free
}, 10000);

setTimeout(() => {
    server.listen(port); // port is in use but request never finishes 
}, 20000);

Is it possible to restart server after it was closed or do I need to .destroy() and .createServer()?

@stale

This comment has been minimized.

Copy link

@stale stale bot commented Feb 19, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Feb 19, 2019
@stale stale bot closed this Feb 26, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Sep 5, 2019

Fixed by #1547

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.