node.js backend doesn't exit if code doesn't spawn a server #73

alokmenghrajani opened this Issue Jul 20, 2012 · 3 comments

3 participants


If I simply write:

and run the code. The server echoes Hi, but then never quits.

This behavior makes it harder to write "shell scripts" in opa (e.g. a piece of code to populate the db).


What is the implementation of Debug.warning?
The server should quit.

If I simply write:



opa test.opa --

the server does quit.


doesn't quit. I'm on macosx: Opa compiler (c) MLstate -- version 1.0.4 -- build 2403

opalang member

Thanks Alok, for the report.

But this bug is already known and should be fixed on the next release (1.0.5).
The issue came from a toplevel setInterval on the cookies.nodejs code.

I'll close this issue as soon as the release is done.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment