-
Notifications
You must be signed in to change notification settings - Fork 7.9k
FPM add routing view global option (for FreeBSD for now). #8470
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
Conversation
sapi/fpm/fpm/fpm_sockets.c
Outdated
@@ -386,6 +406,23 @@ static int fpm_socket_af_unix_listening_socket(struct fpm_worker_pool_s *wp) /* | |||
} | |||
/* }}} */ | |||
|
|||
#ifdef HAVE_SOCKETROUTE | |||
static int fpm_socket_setroute_init(void) /* {{{ */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason for not returning bool
or zend_result
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no reason in particular indeed :-)
d1b946c
to
925bb73
Compare
set the route table FIB id to the sockets created within FPM up to the max set by the system, avoiding having to use setfib command line.
925bb73
to
aac88a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now except few minor comments.
In terms of a test I assume it might be tricky in the pipeline, right? But would it be possible to have something semi manual (e.g. run if there's a different routing table created and skipped if not)?
aac88a3
to
b3429d7
Compare
@devnexen Implementation looks good to me. Let me know what you think about the potential test. If you think it doesn't make sense to add, it should be fine if you describe how you test it and if all works fine. But think some basic stub of the test would be awesome! |
we change the value for boot time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming that you tested it manually with a real routing table...
set the route table FIB id to the sockets created within FPM up to
the max set by the system, avoiding having to use setfib command line.