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

How to stop a httpSerevr ? DisposableServer.dispose[Now] doesn't work #819

Closed
c5ms opened this issue Aug 16, 2019 · 1 comment
Closed

How to stop a httpSerevr ? DisposableServer.dispose[Now] doesn't work #819

c5ms opened this issue Aug 16, 2019 · 1 comment
Labels
status/duplicate This is a duplicate of another issue

Comments

@c5ms
Copy link

c5ms commented Aug 16, 2019

I need start a HttpServer and control this server instance stop .
but I can not stop the server

DisposableServer server=   HttpServer.create()
                .host("localhost")
                .port(port)
                .handle(this::handle)
                .bindNow();
        // server started 
        // curl ... has responsed
        server.disposeNow();
        // curl ... has responsed too ```

How can I stop the serve ? 
please 
@c5ms c5ms added status/need-triage A new issue that still need to be evaluated as a whole type/bug A general bug labels Aug 16, 2019
@violetagg
Copy link
Member

violetagg commented Aug 16, 2019

Check this issue and the workaround there #495 (comment)

@violetagg violetagg added status/duplicate This is a duplicate of another issue and removed status/need-triage A new issue that still need to be evaluated as a whole type/bug A general bug labels Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/duplicate This is a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants