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 static issue with BroadcasterFactory #1543

Closed
jfarcand opened this issue Apr 1, 2014 · 0 comments
Closed

Possible static issue with BroadcasterFactory #1543

jfarcand opened this issue Apr 1, 2014 · 0 comments

Comments

@jfarcand
Copy link
Member

jfarcand commented Apr 1, 2014

Old issue, but can still happen when Atmosphere is embedded


b.setBroadcasterConfig(new BroadcasterConfig(config.framework().broadcasterFilters, config, id.toString()).init());

Likely reproducible simply by calling
atmosphere.init(config);
simultaneously from two threads.

At least reproducible by setting a breakpoint in DefaultBroadcasterFactory.lookup(Class,Object,boolean,boolean) and ensuring the “wrong” thread enters the synchronized block first.

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