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 Sent to Reconnected Broker #849

Closed
wangwen-4220 opened this issue Apr 22, 2024 · 1 comment · Fixed by #859
Closed

Unexpected PUBACK Packet Sent to Reconnected Broker #849

wangwen-4220 opened this issue Apr 22, 2024 · 1 comment · Fixed by #859

Comments

@wangwen-4220
Copy link
Contributor

Expected Behavior

The client should not send queued PUBACK packets to the broker upon reconnection.

Current Behavior

An isolated PUBACK packet is being sent to the broker after the client reconnects.

Failure Information (for bugs)

Context

During testing with two clients (one publisher and one subscriber with manual ACK), we observed that terminating and restarting the mosquitto broker multiple times resulted in an unexpected PUBACK packet being sent upon reconnection.

1.Run the mosquitto broker.
2.Capture ethernet packets to observe the issue.
3.Set up two clients: one as a publisher and the other as a subscriber with manual ACK.
4.Terminate the broker using Ctrl+C and restart it several times.

  • Operating System: Ubuntu 22.04 LTS
  • Toolchain version: rustc 1.79.0-nightly; mosquitto version 2.0.11

Failure Logs

image
@wangwen-4220
Copy link
Contributor Author

Try to fix this issue by creating a PR: #859

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 a pull request may close this issue.

1 participant