Azure / azure-uamqp-python

AMQP 1.0 client library for Python
MIT License
57 stars 48 forks source link

Memory Leak Fix in Session.pyx along with two minor value factory fix #215

Closed yunhaoling closed 3 years ago

yunhaoling commented 3 years ago

Problem:

Root cause:

Client creation would leak memory after connection and session is established because

How to Fix:

More:

Analysis:


the steps I currently use:

current investigation result:

So far the most suspicious part is within the session.pyx:

The cloned two AMQP value cloned_source and cloned_target in the on_link_attached callback defined in session.pyx looks like they're not destroyed.