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

Threading #352

Closed
friendOfOurs opened this issue Oct 29, 2015 · 2 comments
Closed

Threading #352

friendOfOurs opened this issue Oct 29, 2015 · 2 comments

Comments

@friendOfOurs
Copy link

Hi!

Is it somehow possible to employ custom thread management for WebSocketServer?
I've went through the code briefly and as far as I see it is per default thread per connection and is not modifiable?

Thanks,
Regards

@bendem
Copy link
Contributor

bendem commented Oct 29, 2015

You can provide the amount of decoders (threads used to handle connections) in the constructor. If you don't provide that parameter, Runtime.getRuntime().availableProcessors() is used.

@friendOfOurs
Copy link
Author

That should do the job :) Thank you!

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