Skip to content

Use typed data APIs#453

Merged
ioquatix merged 2 commits into
macournoyer:masterfrom
nobu:typed_data
Jun 3, 2026
Merged

Use typed data APIs#453
ioquatix merged 2 commits into
macournoyer:masterfrom
nobu:typed_data

Conversation

@nobu

@nobu nobu commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Fix for Ruby 4.1.

nobu added 2 commits June 3, 2026 20:43
Allocate the HTTP parser with Data_Make_Struct so Ruby owns the memory as soon as the object is created. This avoids leaking the malloc buffer if Data_Wrap_Struct raises while allocating the Ruby object.
Use TypedData_Make_Struct and TypedData_Get_Struct when available so Thin::HttpParser does not depend on the old Data_* accessors removed by newer Ruby.
@ioquatix ioquatix merged commit ac5b2f3 into macournoyer:master Jun 3, 2026
22 of 24 checks passed
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