You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to avoid race condition, self.nr_conns -= 1 need a lock for protection or self.nr_conns need to be an automic integer?
...
fs.add_done_callback(self.finish_request) # this mean "finish_request" will be execute in main thread or child thread?
...
deffinish_request(self, fs):
...
self.nr_conns-=1# race condition?
....
in gunicorn.workers.gthread.py
In order to avoid race condition,
self.nr_conns -= 1
need a lock for protection or self.nr_conns need to be an automic integer?related issue
#2041
The text was updated successfully, but these errors were encountered: