Skip to content

fix(websocket): Fix stale CLOSE_FRAME_SENT_BIT blocking PINGs after reconnect#1018

Open
gabsuren wants to merge 2 commits into
espressif:masterfrom
gabsuren:fix/ws_close_on_auto_reconnect_on_close
Open

fix(websocket): Fix stale CLOSE_FRAME_SENT_BIT blocking PINGs after reconnect#1018
gabsuren wants to merge 2 commits into
espressif:masterfrom
gabsuren:fix/ws_close_on_auto_reconnect_on_close

Conversation

@gabsuren

@gabsuren gabsuren commented Feb 27, 2026

Copy link
Copy Markdown
Collaborator

Related #999

Only set CLOSE_FRAME_SENT_BIT when send_close() succeeds; clear it on every
INIT->CONNECTED transition so a reconnected connection always sends PINGs normally.
Also document the auto_reconnect/close_reconnect dependency in config struct.

@cursor

cursor Bot commented Feb 27, 2026

Copy link
Copy Markdown

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on March 20.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@gabsuren gabsuren self-assigned this Feb 27, 2026
@gabsuren gabsuren force-pushed the fix/ws_close_on_auto_reconnect_on_close branch 3 times, most recently from 070f35d to b5c54b7 Compare February 27, 2026 10:56

@bryghtlabs-richard bryghtlabs-richard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Should I close #999 since this includes both commits?

@gabsuren

Copy link
Copy Markdown
Collaborator Author

Looks good to me. Should I close #999 since this includes both commits?

Thank you. No worries about the second one. I’ll close it once this one gets merged

@gabsuren gabsuren changed the title Fix/ws close on auto reconnect on close fix(websocket): Fix stale CLOSE_FRAME_SENT_BIT blocking PINGs after reconnect Mar 16, 2026
If auto-reconnect-on-close is configured, just close the current
connection. Do not try to stop the client.
@gabsuren gabsuren force-pushed the fix/ws_close_on_auto_reconnect_on_close branch from b5c54b7 to a9e032e Compare June 1, 2026 14:52
@gabsuren gabsuren force-pushed the fix/ws_close_on_auto_reconnect_on_close branch from a9e032e to 11299ed Compare June 1, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants