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

High CPU when stopping the Clojure server #48

Open
oubiwann opened this issue Feb 14, 2017 · 2 comments
Open

High CPU when stopping the Clojure server #48

oubiwann opened this issue Feb 14, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@oubiwann
Copy link
Member

  1. Start the clojure REPL
  2. Start the clojure server (managed-server)
  3. Call the stop function (from either the LFE or Clojure API)
  4. Watch the CPU jump to post 100%

It seems that stopping only really works when you run the clojure server from (-main); looks like the core.async loop in (managed-server) isn't written correctly.

@oubiwann oubiwann added the bug label Feb 14, 2017
@oubiwann oubiwann added this to the 0.4.0 milestone Feb 14, 2017
@oubiwann oubiwann self-assigned this Feb 14, 2017
@oubiwann oubiwann mentioned this issue Feb 14, 2017
8 tasks
@oubiwann
Copy link
Member Author

There's a new core.async release that fixes a related issue (and might well fix the issue underlying this bug).

@oubiwann
Copy link
Member Author

That being said, I think the source of the problem is actually an incorrect placement of a recur inside or outside an if/when block ...

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

No branches or pull requests

1 participant