Skip to content

fix(runtime): allow prefork loading before runtime init - #164

Merged
0x676e67 merged 1 commit into
mainfrom
fix/allow-prefork-before-runtime-init
Aug 16, 2026
Merged

fix(runtime): allow prefork loading before runtime init#164
0x676e67 merged 1 commit into
mainfrom
fix/allow-prefork-before-runtime-init

Conversation

@0x676e67

@0x676e67 0x676e67 commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

This change keeps runtime initialization lazy and moves the ownership check into the runtime entry point. Loading wreq-ruby before fork is supported again, so each worker can initialize its own runtime on first use. Native clients, cookie jars, body senders, responses, and an already initialized parent runtime remain process-local and still raise Wreq::ForkError when inherited. The fork behavior and application guidance are documented alongside the Ruby APIs.

@0x676e67 0x676e67 changed the title Restore prefork compatibility before runtime initialization fix(runtime): allow prefork loading before runtime init Aug 16, 2026

@ZilvinasKucinskas ZilvinasKucinskas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the prefork behavior across Puma preload! and Minitest parallel workers. Everything looks good. Approved ✅

@0x676e67
0x676e67 force-pushed the fix/allow-prefork-before-runtime-init branch from 29d0332 to 072994d Compare August 16, 2026 22:35
@0x676e67
0x676e67 changed the base branch from dev to main August 16, 2026 22:35
@0x676e67
0x676e67 marked this pull request as ready for review August 16, 2026 23:13
@0x676e67
0x676e67 merged commit 0e48bb3 into main Aug 16, 2026
10 checks passed
@0x676e67
0x676e67 deleted the fix/allow-prefork-before-runtime-init branch August 16, 2026 23:13
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