Closed merlimat closed 1 year ago
Fix #84
Release the GIL while calling producer.sendAsync() to avoid a deadlock when PyBind is triggering the Python callback.
producer.sendAsync()
Main Thread
producer.send_async()
ClientConnetion
ClientConnection
The problem is the different behavior in PyBind from Boost::Python.
We always need to make sure we release the GIL before making any call to C++ that potentially acquires any mutexes
Fix #84
Release the GIL while calling
producer.sendAsync()
to avoid a deadlock when PyBind is triggering the Python callback.Main Thread
producer.send_async()
ClientConnetion
lockClientConnection
The problem is the different behavior in PyBind from Boost::Python.
We always need to make sure we release the GIL before making any call to C++ that potentially acquires any mutexes