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

Modifications to solve Issue #922 #940

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

Gord1
Copy link

@Gord1 Gord1 commented Mar 31, 2025

The changes solve the problems in:
#922 (comment)

Solves problems in HeartBeat.

Also readCb arguments change because the original had argument mismatch.

Changes to these files to fix the Heart Beat not working when client's wifi drops or it goes to to sleep causing the server to slow to a crawl. Heart Beat now works and client disconnects occur quickly with little disruption to other clients. Tested on ESP8266 with two WS servers and 5 clients. Clients can now reconnect after wifi drop. More debug statements added to trace the program flow.

Gord1 added 5 commits March 30, 2025 19:50
Changes to these files to fix the Heart Beat not working when client's wifi drops or it goes to to sleep causing the server to slow to a crawl.  Heart Beat now works and client disconnects occur quickly with little disruption to other clients.  Tested on ESP8266 with two WS servers and 5 clients.  Clients can now reconnect after wifi drop.  More debug statements added to trace the program flow.
Deleted - in wrong place
Modification to force new ping following timeout in WebSockets::handleHBTimeout
reverted to - 500 to force ping in HeartBeat time out
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.

1 participant