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

Add forked mode to Play #7773

Open
pauldraper opened this issue Aug 30, 2017 · 1 comment
Open

Add forked mode to Play #7773

pauldraper opened this issue Aug 30, 2017 · 1 comment

Comments

@pauldraper
Copy link
Contributor

lt's relatively easy (e.g. #3799) to introduce memory leaks in application reloading. Or have misbeaving application run out of other resources (run out of file descriptors, sockets) or have globalness (loading a native library, setting a system property, registering URL handlers).

The classloader reload is superior for speed, but it would be nice to have the choice to stop and restart an process, for robustness.

There was sbt-fork-run-plugin but it hasn't worked for some time, and was recently removed altogeher.

@richdougherty
Copy link
Member

Agreed, I would like forked mode too!

The idea I have for dev mode is to have some sort of thin proxy server that holds the HTTP/HTTPS ports open and then forwards traffic to the user's application. The proxy server forwards traffic if the application compiles OK or shows an error message otherwise. However, this is quite a lot of work…

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

No branches or pull requests

3 participants