Skip to content

Conversation

xeioex
Copy link
Contributor

@xeioex xeioex commented Sep 30, 2025

No description provided.

Copy link
Contributor

@VadimZhestikov VadimZhestikov left a comment

Choose a reason for hiding this comment

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

Looks good.

The issue was introduced in commit 04f6dfb (0.9.2) by moving VM
destruction from the pool cleanup handler to the http cleanup handler.

Moving VM destruction to the http cleanup handler broke js_set variable
usage during the log phase, because these variables are called after the
VM has been destroyed.

The fix is to move VM destruction back to the pool cleanup handler, but
use a temporary pool while njs.on('exit', ...) is executing.

This fixes nginx#969 and nginx#971 issues on Github.
@xeioex xeioex force-pushed the rethinking_exit_hook branch from be3b55b to 4936209 Compare October 2, 2025 22:34
@xeioex xeioex added this to the 0.9.3 milestone Oct 2, 2025
@xeioex xeioex merged commit e964916 into nginx:master Oct 2, 2025
2 checks passed
@xeioex xeioex deleted the rethinking_exit_hook branch October 2, 2025 23:15
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