> I would like to know if is safe to use "max-requests" while "thunder-lock"
> is enabled.
> Since I started to use "max-requests" I noticed some new messages in the
> log, saying:
>


the "problem" is in the multiple threads usage, you spawn multiple of
them, so the max_requests check could happens in multiple threads once.

The thunder-lock is a performance-only measure, so even if it does not
work flawlessly for a single request, it will not hurt for sure and the
deadlock detector will fix it in time for the next request.

The right fix will be acquiring the thunder lock before destroying the
proces but, wait, we are about to destroy it so we will not be able to
release the lock as we are dead :)

At this point i think following an optimistic approach, and letting the
deadlock-detector clearing the situation, is the best thing we can do.

So yes, you are safe.

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to