LotusRain
LotusRain
In my case,after upgrade urllib3 to 1.26.16 i met the same deadlock or the stuck situation,and after digging into the gevent and urllib3 and other libraries which are using gevent...
> Looking at the gevent codebase, it doesn't appear that all of the `queue` module is patched out, just `SimpleQueue`: > > https://github.com/gevent/gevent/blob/master/src/gevent/monkey.py#L543 > > Even with an early enough...
set priority_steps to [0] in transport_options or create a series of keys related to the priority in redis cluster when using redis cluster will sovle the problem, because kombu will...
If stuck happens with using gevent and urllib3, then **after monkey patching and before using urllib3**, replace **urllib3.ConnectionPool.QueueCls** with **gevent.queue.LifoQueue** may solve this problem.
@glic3rinu > but in general gevent patch should execute very early on, and by the time urllib3 gets loaded `queue.LifoQUeue` should already been patched? yes,basically we should patch as early...
Hi @LefterisJP,I did this in my project's `__init__.py` ``` import gevent.monkey import gevent.signal from gevent.queue import LifoQueue gevent.monkey.patch_all() from urllib3.connectionpool import ConnectionPool ConnectionPool.QueueCls = LifoQueue ``` and yes, it's the...
> This is why I am saying it's really hard for me to reproduce 😞 Wish I could reproduce it reliably and then we can confirm a fix or not....