Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tunnelbroker] close RabbitMQ queue when client disconnects
Summary: This might cause issues and was causing error in past: 1. We run persistence test 2. Queue is created, but never closed 3. We run tests again, messages are in database, but are also put into RabbitMQ 4. Consumer receives messages, and try to send but socket is closed at this time 5. It generates error in Tunnelbroker logs Depends on D9316 Test Plan: 1. Without this changes run: `cd services/commtest && cargo test --test tunnelbroker_persist_tests -- --nocapture` 2. Wait for the test to finish 3. Go to RabbitMQ console and it shows queues: {F780925} 4. Restart RabbitMQ 5. Do steps 1, 2, 3 and the console should show 0 queues: {F780926} Reviewers: michal, bartek, varun, jon Reviewed By: michal, bartek Subscribers: ashoat, tomek Differential Revision: https://phab.comm.dev/D9317
- Loading branch information