-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
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
Issue loading images when threading is enabled #2744
Comments
You haven't provided enough information to identify the problem. Does this happen if you run with multiple workers with another WSGI server, such as Gunicorn? |
This appears to be an issue related to making multiple concurrent LDAP calls. Perhaps the LDAP library you're using is not thread safe in some way? Do you get the error if you remove Flask from the example and try the same thing using a Python thread pool? |
I have a Flask app to display profiles based on LDAP data. After updating to 1.0 I'm having crashes when loading the data. Running the app with
threaded=False
works, but I'd like to have threads.Expected Behavior
The app would pull an image from the LDAP server and return it to the client. It would be displayed in HTML.
Actual Behavior
The application crashes some way through loading the images. It usually loads 1 or 2 before exiting like this.
This behavior is only observed when attempting to load a large amount of images, such as on a page with a group of users. It does not happen on a single profile which only loads a single image.
Environment
The text was updated successfully, but these errors were encountered: