Skip to content

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