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

Possible Thread Race with AsyncToken in DefaultBroadcaster #1932

Closed
jfarcand opened this issue Mar 31, 2015 · 7 comments
Closed

Possible Thread Race with AsyncToken in DefaultBroadcaster #1932

jfarcand opened this issue Mar 31, 2015 · 7 comments

Comments

@jfarcand
Copy link
Member

In DefaultBroadcaster, setAttribute is called with the same key:

request.setAttribute(ASYNC_TOKEN, token);

This can cause side effect if more than one Broadcaster is used with the same AtmosphereResource

jfarcand added a commit that referenced this issue Mar 31, 2015
@slovdahl
Copy link
Contributor

slovdahl commented Jun 2, 2015

This issue is marked as fixed in 2.2.7, but I can't find any commit that fixes it in the atmosphere-2.2.x branch.

@jfarcand jfarcand added 2.2.6 and removed 2.2.7 labels Jun 2, 2015
@jfarcand
Copy link
Member Author

jfarcand commented Jun 2, 2015

@slovdahl If you have the cycle, just cherry-pick it. Thanks!

@slovdahl slovdahl added 2.2.8 and removed 2.2.6 labels Jun 2, 2015
@slovdahl
Copy link
Contributor

slovdahl commented Jun 2, 2015

Sure, will do.

jfarcand added a commit that referenced this issue Jun 3, 2015
@slovdahl
Copy link
Contributor

slovdahl commented Jun 3, 2015

Should we let the public void cacheLostMessage(AtmosphereResource r) method be available in 2.2.x? It's a bit dangerous to remove a public method.

@jfarcand
Copy link
Member Author

jfarcand commented Jun 3, 2015

+1

slovdahl added a commit that referenced this issue Jun 3, 2015
@slovdahl
Copy link
Contributor

slovdahl commented Jun 3, 2015

Hmm, can't find that wiki page or mail where you said which :symbol: to use for commits 🐫

@jfarcand
Copy link
Member Author

jfarcand commented Jun 3, 2015

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

2 participants