Skip to content

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

Open
gabsuren wants to merge 2 commits intoespressif: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 intoespressif:masterfrom
gabsuren:fix/ws_close_on_auto_reconnect_on_close

Conversation

@gabsuren
Copy link
Copy Markdown
Collaborator

@gabsuren gabsuren commented Feb 27, 2026

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
Copy link
Copy Markdown

cursor bot commented Feb 27, 2026

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 2 times, most recently from ee21553 to 070f35d Compare February 27, 2026 10:33
bryghtlabs-richard and others added 2 commits February 27, 2026 14:56
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 070f35d to b5c54b7 Compare February 27, 2026 10:56
Copy link
Copy Markdown
Contributor

@bryghtlabs-richard bryghtlabs-richard left a comment

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
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