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

Will not shup down #343

Open
jarroddavis68 opened this issue May 15, 2023 · 1 comment
Open

Will not shup down #343

jarroddavis68 opened this issue May 15, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jarroddavis68
Copy link

It runs fine in centos, but when I try to stop the server, it seems to hang in the terminal, and I have to Ctrl+Z to get back to the command line. How do I gracefully shut the server down?

  THorse.Listen(9000,
    procedure
    begin
      WriteLn;
      Write('Press ENTER to stop server...');
      Readln;
      THorse.StopListen;
    end);

What is interesting is that if an endpoint is never called, you can press ENTER and it will terminated as expected. However, call an endpoint and when you press ENTER, the server shutdown as you are not able to access the url anylonger, but the terminal window hangs.

@viniciussanchez viniciussanchez added the bug Something isn't working label Aug 4, 2023
@viniciussanchez
Copy link
Member

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants