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

Application won't close after Api.get #38

Open
zipon opened this issue Jan 22, 2016 · 5 comments
Open

Application won't close after Api.get #38

zipon opened this issue Jan 22, 2016 · 5 comments

Comments

@zipon
Copy link

zipon commented Jan 22, 2016

Hi

When running sbt run the main method does not exit after api.get(...).onComplete() but instead hangs. It seems some thread is still active and not cleaned up. I don't see this behaviour in the Java kit.

@erwan
Copy link
Contributor

erwan commented Jan 22, 2016

The Java kit is a completely different code base, so it's not really surprising.

Could you give me some code snippet where you can consistently reproduce the problem?

@zipon
Copy link
Author

zipon commented Jan 22, 2016

Here is an example https://gist.github.com/zipon/224455e586acbc205419

@erwan
Copy link
Contributor

erwan commented Jan 22, 2016

@magnusart
Copy link

Looks like you're not closing the channels?

When googling I came across the following:
channel.write( ... ).addListener(ChannelFutureListener.CLOSE)

@erwan
Copy link
Contributor

erwan commented Jan 22, 2016

I think ctx.close() is supposed to do it but maybe I'm wrong

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

3 participants