We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I don't understand the difference between:
red:connect("unix:/path/to/unix.sock", { pool_size = 1000 })
and this:
red:set_keepalive(10000, 1000)
Both create a pool a 1000 reusable connections, am I right ? If so, why adding the pool_size option in set_keepalive and vice-versa ?
pool_size
set_keepalive
The text was updated successfully, but these errors were encountered:
the size from keepalive is deprecated, you can refer to https://github.com/openresty/lua-nginx-module#tcpsocksetkeepalive
Sorry, something went wrong.
I don't even have access to the underlying socket, how am I supposed to set keepalive ?
Edit: Ok I got it, I must use pool_size from the connectmethod
connect
No branches or pull requests
I don't understand the difference between:
and this:
Both create a pool a 1000 reusable connections, am I right ?
If so, why adding the
pool_size
option inset_keepalive
and vice-versa ?The text was updated successfully, but these errors were encountered: