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

Red5.getConnectionLocal().getScope() returns null after HTTP call #85

Closed
andreslorek opened this issue May 20, 2015 · 2 comments
Closed

Comments

@andreslorek
Copy link

I'm using Red5-1.0.4 and having an issue with Red5.getConnectionLocal().getScope(). I work with an external system, operating with an API.

In some methods, I need to make something like this:

Red5.getConnectionLocal().getScope(); // returns the correct Scope
// Do some call to an API via HTTP
Red5.getConnectionLocal().getScope(); // sometimes returns the correct Scope and some others returns null

As a workaround, I'm saving the result of the .getScope() method before the API call, so I can use it after that without any problem.

@mondain
Copy link
Member

mondain commented Jul 2, 2015

Why would the ThreadLocal value in Red5 change due to your API call? The only way I see this happening is if you are somehow modifying it or your in a method where you are not maintaining access to the connection instance.

@mondain
Copy link
Member

mondain commented Jul 3, 2015

This could possibly be related to issue #39 if you're using a pre 1.0.5 version.

@mondain mondain closed this as completed Feb 10, 2016
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