Skip to content

[2.4.x] mpm_motorz: Backport the MotorZ MPM from trunk - #995

Open
jimjag wants to merge 5 commits into
apache:2.4.xfrom
jimjag:backport-mpm_motorz
Open

jimjag wants to merge 5 commits into
apache:2.4.xfrom
jimjag:backport-mpm_motorz

Conversation

@jimjag

@jimjag jimjag commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Backports the MotorZ MPM from trunk as a self-contained port, with no new core API and no MMN bump. Where trunk's MotorZ relies on core features 2.4.x lacks (ap_mpm_resume_suspended(), the child_stopped hook, ap_run_output_pending()/ap_run_input_pending()), it follows 2.4.x's event MPM instead: a suspended connection stays with the module that suspended it. The extra-connection accounting from r1939355 is left out, as it needs core r1939354. MotorZ is opt-in and never chosen as the default MPM.

Also adds a linux.yml job that runs test/pytest_suite and test_008_restart.py under MotorZ, the RPM spec entry, and the mpm_common docs. The test files it adds are the same as on trunk, and it drops the MotorZ skip from test_008_restart.py as trunk did.

Trunk: r1934868 r1934888 r1934890 r1935407 r1935433 r1938134 r1939355 (in part) r1939361 r1939366 r1939392 r1939435 r1939466 r1939477 r1939479 r1939480 r1939483 r1939486, ce674ee, 8f10339, b34be36, 5e004d5 and 1a0fc80. AH10681 is reserved on trunk for the write-failure message only this port has.

jimjag added a commit that referenced this pull request Nov 10, 2026
2.4.x has no ap_sb_get_child_thread(), so the worker slot keeps its
thread number for c->id.
The config.m4 half was already in the backport branch.
@jimjag
jimjag force-pushed the backport-mpm_motorz branch from ff3bb3d to 1bd7217 Compare November 30, 2026 10:26
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.

1 participant