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

Grizzly ignores the selector handlers added to Controller if the controller is already running #37

Closed
glassfishrobot opened this issue Oct 30, 2007 · 8 comments

Comments

@glassfishrobot
Copy link

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

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by raih@java.net

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Was assigned to oleksiys@java.net

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
jfarcand@java.net said:
...

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
oleksiys@java.net said:
fixed

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
jfarcand@java.net said:
Fix milestones

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Marked as fixed on Wednesday, December 16th 2009, 6:14:11 pm

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA GRIZZLY-37

@glassfishrobot
Copy link
Author

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

1 participant