[15/n] Tunnelbroker - reconnect AMQP
Summary:
This is built on the top of the following stack:
D2809 D2875 D2752 D2904 D2759 D2760 D2808 D2762 D2876 D2769 D2877 D2807 D2814 D2870 D2888 D2915 D2976 D2977 D2978
In response to https://linear.app/comm/issue/ENG-497/amqp-connection-lostreconnection-handling
We want to reconnect when the amqp connection breaks. As mentioned in the GitHub issue attached to the linear task, we have to recreate the connection, there's no way to reuse existing resources.
Test Plan:
cd services yarn run-tunnelbroker-service
Then wait ~20-30mins holding an idle connection, after that time, it'll break and be recreated.
Reviewers: palys-swm, ashoat, karol-bisztyga
Reviewed By: palys-swm, ashoat
Subscribers: benschac, ashoat, palys-swm, Adrian, atul
Differential Revision: https://phabricator.ashoat.com/D2888