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

Fix frequent MQTT_Ping calls in handleKeepAlive #1922

Closed
wants to merge 1 commit into from

Conversation

vishwamartur
Copy link

Related to #1915

Update handleKeepAlive in source/core_mqtt.c to correctly update pContext->lastPacketTime when data is received.

  • Ensure MQTT_Ping is not called frequently due to pContext->lastPacketTime not updating.
  • Retain the logic for sending ping packets based on both received and sent message intervals.
  • Address the issue related to the underlying transport failing to send the data, ensuring reliable data transmission.

Related to aws#1915

Update `handleKeepAlive` in `source/core_mqtt.c` to correctly update `pContext->lastPacketTime` when data is received.

* Ensure `MQTT_Ping` is not called frequently due to `pContext->lastPacketTime` not updating.
* Retain the logic for sending ping packets based on both received and sent message intervals.
* Address the issue related to the underlying transport failing to send the data, ensuring reliable data transmission.
@vishwamartur vishwamartur requested a review from a team as a code owner October 30, 2024 12:17
@ActoryOu
Copy link
Member

Hi @vishwamartur,
It looks like you're updating CoreMQTT. Could you help raise a PR there? That's the place to maintain core_mqtt.c.

Thank you.

@ActoryOu ActoryOu closed this Oct 31, 2024
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