Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Jan 15, 2025

The connection cannot return some information while initializing, so we just return no information.

The CLI info call was supported only in the open gen_statem callback, so such a call during the connection init would make it crash. This can happen when several stream connections get closed and the user calls list_stream_consumers or list_stream_connections while the connection are recovering.

This commit adds a clause for CLI info calls in the all the gen_statem callbacks and returns actual information only when appropriate.


This is an automatic backport of pull request #13049 done by Mergify.

The connection cannot return some information while initializing, so we
just return no information.

The CLI info call was supported only in the open gen_statem callback, so
such a call during the connection init would make it crash. This can
happen when several stream connections get closed and the user calls
list_stream_consumers or list_stream_connections while the connection
are recovering.

This commit adds a clause for CLI info calls in the all the gen_statem
callbacks and returns actual information only when appropriate.

(cherry picked from commit 415dc81)
@acogoluegnes acogoluegnes added this to the 4.0.6 milestone Jan 15, 2025
@acogoluegnes acogoluegnes merged commit 88c8362 into v4.0.x Jan 15, 2025
270 checks passed
@acogoluegnes acogoluegnes deleted the mergify/bp/v4.0.x/pr-13049 branch January 15, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants