Skip to content

Take a ref receiver on the SSLContext option mutators - #98

Merged
SeanTAllen merged 1 commit into
mainfrom
fun-ref-context-option-mutators
Jul 10, 2026
Merged

Take a ref receiver on the SSLContext option mutators#98
SeanTAllen merged 1 commit into
mainfrom
fun-ref-context-option-mutators

Conversation

@SeanTAllen

Copy link
Copy Markdown
Member

_set_options and _clear_options reconfigure the OpenSSL context but took the default box receiver, which a val receiver satisfies. An SSLContext is held val once configuration is done — client and server require it — so a fun val or fun box method added later could have reconfigured a frozen context and compiled. They are fun ref now, matching every other mutating setter on the type.

Closes #93

`_set_options` and `_clear_options` reconfigure the OpenSSL context, but
took the default `box` receiver, which a `val` receiver satisfies. An
`SSLContext` is held `val` once it is done being configured — `client`
and `server` require it — so a `fun val` or `fun box` method added later
could have reconfigured a frozen context and compiled.

Closes #93
@SeanTAllen

Copy link
Copy Markdown
Member Author

Autonomous-mode decision log — PR-specific

No PR-specific judgment calls. One thing worth flagging: #93 is the only issue
typed Bug (the rest are Task), so "work through each of the tasks" could have
excluded it. I read it as all eight open issues — #93 is a one-word fix and
leaving a bug in the tracker while clearing the tasks around it made no sense. If
you meant the narrow reading, this is the PR to drop.

@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Jul 10, 2026
@SeanTAllen
SeanTAllen merged commit ea876ac into main Jul 10, 2026
13 of 14 checks passed
@SeanTAllen
SeanTAllen deleted the fun-ref-context-option-mutators branch July 10, 2026 16:52
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Jul 10, 2026
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.

_set_options and _clear_options take a box receiver but mutate the context

2 participants