-
Notifications
You must be signed in to change notification settings - Fork 69
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
Grizzly ignores the selector handlers added to Controller if the controller is already running #37
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
Grizzly v1.6.1/0 onwards:
Grizzly ignores the TCP selection handlers added if the controller is
already started. In the old versions this is not a problem.
Here is a TENTATIVE fix: In Controller.java:
public void addSelectorHandler(SelectorHandler selectorHandler){
if (selectorHandlers == null)
{ selectorHandlers = new ConcurrentLinkedQueue(); }
selectorHandlers.add(selectorHandler);
if (isStarted())
{ Runnable selectorRunner = new SelectorHandlerRunner(this, selectorHandler); new Thread(selectorRunner).start(); }
}
Environment
Operating System: All
Platform: Sun
The text was updated successfully, but these errors were encountered: