Skip to content

__alloc_func__#2992

Merged
kddnewton merged 1 commit into
masterfrom
alloc-func
May 6, 2026
Merged

__alloc_func__#2992
kddnewton merged 1 commit into
masterfrom
alloc-func

Conversation

@kddnewton
Copy link
Copy Markdown
Member

Analogous to rb_define_alloc_func. Use it for OpenSSL::SSL::SSLContext so #allocate produces a fully-initialized object so that it can be used after allocation.

There are some specs failing with ftp where it calls allocate but then doesn't initialize it, so we can't rely on the ssl context being set up properly. I mirrored this, though I know it's a more invasive change, because I think there are other circumstances where we'll need something like this.

Analogous to rb_define_alloc_func. Use it for
OpenSSL::SSL::SSLContext so .allocate produces a fully-initialized
object so that it can be used after allocation.
@kddnewton kddnewton merged commit 0f32d3e into master May 6, 2026
35 of 36 checks passed
@kddnewton kddnewton deleted the alloc-func branch May 6, 2026 16:12
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.

2 participants