Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit fixes two different bugs/crashes. To repro, prior to this commit: 1. Create an AMQP 1.0 connection on node-1. 2. Open the Management UI on node-2 and open the connection page of this single AMQP 1.0 connection. The first crash occurred because no function rabbit_connection_tracking:lookup/2 was exported. The second crash was the following: ``` [error] <0.1132.0> crasher: [error] <0.1132.0> initial call: cowboy_stream_h:request_process/3 [error] <0.1132.0> pid: <0.1132.0> [error] <0.1132.0> registered_name: [] [error] <0.1132.0> exception error: no case clause matching [error] <0.1132.0> {tracked_connection, [error] <0.1132.0> {'rabbit-1@VQD7JFK37T', [error] <0.1132.0> <<"[::1]:65505 -> [::1]:5672">>}, [error] <0.1132.0> 'rabbit-1@VQD7JFK37T',<<"/">>, [error] <0.1132.0> <<"[::1]:65505 -> [::1]:5672">>,<13661.1110.0>, [error] <0.1132.0> {1,0}, [error] <0.1132.0> network, [error] <0.1132.0> {0,0,0,0,0,0,0,1}, [error] <0.1132.0> 65505,<<"guest">>,1730908606089} [error] <0.1132.0> in function rabbit_connection_tracking:lookup/2 (rabbit_connection_tracking.erl, line 235) [error] <0.1132.0> in call from rabbit_mgmt_wm_connection_sessions:conn/1 (rabbit_mgmt_wm_connection_sessions.erl, line 72) [error] <0.1132.0> in call from rabbit_mgmt_wm_connection_sessions:is_authorized/2 (rabbit_mgmt_wm_connection_sessions.erl, line 63) [error] <0.1132.0> in call from cowboy_rest:call/3 (src/cowboy_rest.erl, line 1590) [error] <0.1132.0> in call from cowboy_rest:is_authorized/2 (src/cowboy_rest.erl, line 368) [error] <0.1132.0> in call from cowboy_rest:upgrade/4 (src/cowboy_rest.erl, line 284) [error] <0.1132.0> in call from cowboy_stream_h:execute/3 (src/cowboy_stream_h.erl, line 306) [error] <0.1132.0> in call from cowboy_stream_h:request_process/3 (src/cowboy_stream_h.erl, line 295) ```
- Loading branch information