Skip to content

fix: route extension requests to their worker, refuse messages once stopped - #2786

Open
nicolas-grekas wants to merge 1 commit into
php:mainfrom
nicolas-grekas:extension-worker-fixes
Open

nicolas-grekas wants to merge 1 commit into
php:mainfrom
nicolas-grekas:extension-worker-fixes

Conversation

@nicolas-grekas

Copy link
Copy Markdown
Contributor

SendRequest() looked its worker up by name, so an extension worker declared without one sent its requests to a regular thread. It now dispatches on the worker itself.

SendMessage() after Shutdown() waited for a thread for good. It now returns ErrNotRunning, like SendRequest().

Both came up in the review of #2617, thanks @alexandre-daubois.

…topped

SendRequest() resolved its worker by name, so an extension worker declared
without one sent its requests to a regular thread; it now dispatches on the
worker itself. SendMessage() after Shutdown() waited for a thread for good,
it now returns ErrNotRunning as SendRequest() does. Both came up in the
review of php#2617.

This branch has not been deployed

No deployments
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