Gevent greenlet stuck when using stream recognize request in a separate thread. #12535
Labels
external
This issue is blocked on a bug with the actual product.
needs more info
This issue needs more information from the customer to proceed.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
This is my code for running each recognize task in a separate gevent greenlet and this causes the greenlet to stuck:
I've also included patch for my gevent application:
So after the above greenlet stuck, my whole application will basically hang.
Note that if I do the stream recognition synchronously without using gevent greenlet, it works fine. However I still prefer to use it in separate thread to improve on latency. I wonder if this is also another grpc incompatibility issue with gevent.
The text was updated successfully, but these errors were encountered: