Skip to content

Implemented ping for MQTT #16975

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

Closed
wants to merge 6 commits into from

Conversation

MonkeybreadSoftware
Copy link
Contributor

If you subscribe to a topic, the socket gets closed by the server after about 70 to 90 seconds.
By sending ping, we can keep it open.

I currently use the upkeep interval for the ping timeout. You can set it to zero to turn this off.

Replaces older pull request
#16140

MonkeybreadSoftware and others added 2 commits April 5, 2025 17:59
Co-authored-by: Daniel Stenberg <daniel@haxx.se>
Removed space before dot.
@bagder bagder added feature-window A merge of this requires an open feature window MQTT labels Apr 5, 2025
@bagder bagder closed this in 8ad0243 Apr 16, 2025
@bagder
Copy link
Member

bagder commented Apr 16, 2025

Thanks!

nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-window A merge of this requires an open feature window libcurl API MQTT
Development

Successfully merging this pull request may close these issues.

2 participants