Skip to content

Fix SSLConnection calling auth_failed twice for one failure - #141

Merged
SeanTAllen merged 1 commit into
mainfrom
fix-double-auth-failed
Aug 2, 2026
Merged

Fix SSLConnection calling auth_failed twice for one failure#141
SeanTAllen merged 1 commit into
mainfrom
fix-double-auth-failed

Conversation

@SeanTAllen

Copy link
Copy Markdown
Member

_poll reaches SSLAuthFail twice on a single failure — once from received and once from closed, which calls _poll before _ssl.dispose(). Each time, it called auth_failed on the wrapped notify.

Added an _auth_failed boolean guard, mirroring the _connected guard on SSLReady.

Closes #127

`_poll` reaches `SSLAuthFail` twice on a single failure: once from
`received` and once from `closed`, which calls `_poll` before
`_ssl.dispose()`. The `SSLReady` arm guards its notification with
`_connected`; `SSLAuthFail` had no analogous guard.

Closes #127
@SeanTAllen SeanTAllen added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Aug 2, 2026
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Aug 2, 2026
@SeanTAllen
SeanTAllen merged commit 24bc7e2 into main Aug 2, 2026
16 checks passed
@SeanTAllen
SeanTAllen deleted the fix-double-auth-failed branch August 2, 2026 02:47
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Aug 2, 2026
github-actions Bot pushed a commit that referenced this pull request Aug 2, 2026
github-actions Bot pushed a commit that referenced this pull request Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSLConnection calls auth_failed twice for one failure

2 participants