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

Concurrency question #86

Closed
johncblacker opened this issue Mar 14, 2023 · 3 comments
Closed

Concurrency question #86

johncblacker opened this issue Mar 14, 2023 · 3 comments
Labels

Comments

@johncblacker
Copy link

Excuse me if this is a dumb question,but what prevents a second client connection from trying to create another camera feed? My understanding is that additional threads are started automatically upon receiving another request from a new client, therefore wouldn't that request try to create another feed? If not, can you explain why? Maybe it's my lack of knowledge of flask/gunicorn or?

@miguelgrinberg
Copy link
Owner

There is only one camera thread that is shared by all clients.

@johncblacker
Copy link
Author

Thanks, I see now where there's a check in the init function of the base class to see if there's already a running thread...I just hadn't gone through the code carefully enough...thanks, though for the reply.

@johncblacker
Copy link
Author

Found the answer in the init of the camera base class - my bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants