eandersson / amqpstorm

Thread-safe Python RabbitMQ Client & Management library
https://www.amqpstorm.io/
MIT License
186 stars 36 forks source link

Re-work how channels ids are re-used #100

Closed eandersson closed 3 years ago

eandersson commented 3 years ago

The previous implementation had some caveats that made it difficult to ensure thread safety when the connection was unstable. This commit simplifies this by by only removing closed channels when we are opening a new channel or when closing the connection.

Additional changes