Skip to content
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

[question] Can we use ngx_socket_connect() to an upstream? #171

Open
joanhey opened this issue May 13, 2023 · 3 comments
Open

[question] Can we use ngx_socket_connect() to an upstream? #171

joanhey opened this issue May 13, 2023 · 3 comments

Comments

@joanhey
Copy link
Contributor

joanhey commented May 13, 2023

So we will have a pool, and extra options to the connection for free.

@joanhey
Copy link
Contributor Author

joanhey commented May 15, 2023

We can do it if we set a route in the config, that point to the upstream, and we point the connection to that route.
But can we do it directly, without the route ?

@rryqszq4
Copy link
Owner

@joanhey
Sure, php_keepalive directive can be set upstream connection pool size.
https://github.com/rryqszq4/ngx-php#php_keepalive

@rryqszq4
Copy link
Owner

ngx_socket_connect is api of nginx upstream socket for php.

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

No branches or pull requests

2 participants