chore: update changes

This commit is contained in:
JianBo He 2023-06-13 11:47:28 +08:00
parent c4c32f5032
commit 26ad06b9ca
2 changed files with 10 additions and 0 deletions

View File

@ -1088,6 +1088,11 @@ parse(Data) ->
Parser = emqx_stomp_frame:initial_parse_state(ProtoEnv), Parser = emqx_stomp_frame:initial_parse_state(ProtoEnv),
emqx_stomp_frame:parse(Data, Parser). emqx_stomp_frame:parse(Data, Parser).
get_field(command, #stomp_frame{command = Command}) ->
Command;
get_field(body, #stomp_frame{body = Body}) ->
Body.
send_connection_frame(Sock, Username, Password) -> send_connection_frame(Sock, Username, Password) ->
send_connection_frame(Sock, Username, Password, <<"0,0">>). send_connection_frame(Sock, Username, Password, <<"0,0">>).

View File

@ -0,0 +1,5 @@
Fixed multiple issues with the Stomp gateway, including:
- Fixed an issue where `is_superuser` was not working correctly.
- Fixed an issue where the mountpoint was not being removed in message delivery.
- After a message or subscription request fails, the Stomp client should be disconnected
immediately after replying with an ERROR message.