summaryrefslogtreecommitdiff
path: root/proto_proxy.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2023-01-31 17:20:30 -0800
committerdormando <dormando@rydia.net>2023-02-01 14:28:29 -0800
commit58d8f40a90ee22d78adc0ae99f4b915e65f69be6 (patch)
tree4516a274f0f4a692db97ed235f400c4123534092 /proto_proxy.c
parent0d8ebbfb823c94e5ce68550c9ae186d8af789446 (diff)
downloadmemcached-58d8f40a90ee22d78adc0ae99f4b915e65f69be6.tar.gz
proxy: add mcp.backend(t) for more overrides
ie: local b1 = mcp.backend({ label = "b1", host = "127.0.0.1", port = 11511, connecttimeout = 1, retrytimeout = 0.5, readtimeout = 0.1, failurelimit = 11 }) ... to allow for overriding connect/retry/etc tunables on a per-backend basis. If not passed in the global settings are used.
Diffstat (limited to 'proto_proxy.c')
-rw-r--r--proto_proxy.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/proto_proxy.c b/proto_proxy.c
index b09e113..feeddc9 100644
--- a/proto_proxy.c
+++ b/proto_proxy.c
@@ -175,8 +175,6 @@ void *proxy_init(bool use_uring) {
pthread_mutex_init(&t->mutex, NULL);
pthread_cond_init(&t->cond, NULL);
- memcpy(&t->tunables, &ctx->tunables, sizeof(t->tunables));
-
#ifdef HAVE_LIBURING
if (t->use_uring) {
pthread_create(&t->thread_id, NULL, proxy_event_thread_ur, t);