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

Server stops just after starting #71

Closed
PatrickSauts opened this issue Mar 25, 2019 · 2 comments
Closed

Server stops just after starting #71

PatrickSauts opened this issue Mar 25, 2019 · 2 comments

Comments

@PatrickSauts
Copy link

I'm trying to use your project on a kotlin project but when I start the server it stops just after starting.
If I put a breakpoint on NettyHttpService:184 then I can use the server.
am I missing something ?

class Server {

	companion object {
		@JvmStatic
		fun main(args: Array<String>) {
			val handlers = ArrayList<HttpHandler>()
			handlers.add(AuthenticationController())
			val service = NettyHttpService.builder("the-app")
				.setPort(8080)
				.setHttpHandlers(handlers)
				.build()
			service.start()
		}
	}
@chtyim
Copy link
Contributor

chtyim commented Mar 25, 2019 via email

@PatrickSauts
Copy link
Author

Thank you Terence I had done a similar thing but I wasn't sure if it was intended.
I actually was expecting a join() after the start(), maybe it could be a good idea to add the code you mentioned in a join() method.

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

No branches or pull requests

2 participants