Skip to content

ext/sockets update the sock_filter usage for the CPBF filter. #10931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

devnexen
Copy link
Member

disapatching now (modulo) number of available cores.

@bukka
Copy link
Member

bukka commented Mar 25, 2023

Would be nice to add some comments so it is clear what it is doing without further digging.

@devnexen devnexen force-pushed the socket_cbpf_update branch from a2f3554 to 427d676 Compare March 25, 2023 21:18
@devnexen devnexen requested a review from iluuu1994 April 18, 2023 20:37
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

Unfortunately I can't comment on the code itself as I have no knowledge of the API. I can look into it, but maybe somebody has existing knowledge?

@@ -1969,17 +1969,39 @@ PHP_FUNCTION(socket_set_option)
opt_ptr = &ov;
optname = SO_DETACH_BPF;
} else {
/**
* this socket flag offers a tigher control over the SO_REUSEPORT's algorithm
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Use punctuation and upper-case letters in comments with multiple sentences. Makes it easier to read 🙂

disapatching now (modulo) number of available cores.
@devnexen devnexen force-pushed the socket_cbpf_update branch from 427d676 to 860d79d Compare April 20, 2023 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants