Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected PUBACK packet received #74

Open
emqplus opened this issue Jul 12, 2019 · 1 comment
Open

Unexpected PUBACK packet received #74

emqplus opened this issue Jul 12, 2019 · 1 comment
Assignees
Labels
Milestone

Comments

@emqplus
Copy link
Contributor

emqplus commented Jul 12, 2019

=ERROR REPORT==== 12-Jul-2019::11:49:17.754315 ===
emqtt(emqs-MacBook-Pro_bench_pub_1_2835554768): State: connected, Unexpected Event: (cast, {mqtt_packet,
                                                                                            {mqtt_packet_header,
                                                                                             5,
                                                                                             false,
                                                                                             0,
                                                                                             false},
                                                                                            {mqtt_packet_puback,
                                                                                             18024,
                                                                                             147,
                                                                                             #{}},
                                                                                            undefined})


=ERROR REPORT==== 12-Jul-2019::12:10:49.543783 ===
emqtt(emqs-MacBook-Pro_bench_pub_1_2641837960): State: connected, Unexpected Event: (cast, {mqtt_packet,
                                                                                            {mqtt_packet_header,
                                                                                             5,
                                                                                             false,
                                                                                             0,
                                                                                             false},
                                                                                            {mqtt_packet_puback,
                                                                                             5076,
                                                                                             147,
                                                                                             #{}},
                                                                                            undefined})
@emqplus emqplus added the bug label Jul 12, 2019
@emqplus emqplus added this to the 2.0 milestone Jul 12, 2019
@red-jade
Copy link

red-jade commented Oct 7, 2019

It is trivial to reproduce by specifying protocol v5 instead of v4:
This works:
{ ok, C } = emqtt:start_link( [ {proto_ver, v4} ] ),
{ ok, _ } = emqtt:connect( C ),
{ ok, _ } = emqtt:publish( C, <<"TopicA">>, <<"msg 1">>, 2 ),
receive { puback, _ } -> ok end,
ok = emqtt:disconnect( C ).

This does not, and it creates the posted error message:
{ ok, C } = emqtt:start_link( [ {proto_ver, v5} ] ),
{ ok, _ } = emqtt:connect( C ),
{ ok, _ } = emqtt:publish( C, <<"TopicA">>, <<"msg 1">>, 2 ),
receive { puback, _ } -> ok end,
ok = emqtt:disconnect( C ).

EMQX 4.0 beta, OTP 21.2 and OTP 22.0, 64-bit Windows 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants