summaryrefslogtreecommitdiff
path: root/proxy_internal.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2023-04-03 14:30:15 -0700
committerdormando <dormando@rydia.net>2023-04-03 14:30:15 -0700
commit41be027140ac4c42564e472178e88ed149570fbd (patch)
treea83254d24586705bfb4c408ac488e189a67f997f /proxy_internal.c
parent8f9a2e653dedcabd7f1932e73e73e15c940f3d92 (diff)
downloadmemcached-41be027140ac4c42564e472178e88ed149570fbd.tar.gz
proxy: send CLIENT_ERROR when necessarystaging
A few code paths were returning SERVER_ERROR (a retryable error) when it should have been CLIENT_ERROR (bad protocol syntax).
Diffstat (limited to 'proxy_internal.c')
-rw-r--r--proxy_internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy_internal.c b/proxy_internal.c
index 5484dc7..4da1c4a 100644
--- a/proxy_internal.c
+++ b/proxy_internal.c
@@ -250,7 +250,7 @@ static void process_get_cmd(LIBEVENT_THREAD *t, mcp_parser_t *pr, mc_resp *resp,
pthread_mutex_unlock(&t->stats.mutex);
item_remove(it);
- proxy_out_errstring(resp, "out of memory writing get response");
+ proxy_out_errstring(resp, PROXY_SERVER_ERROR, "out of memory writing get response");
return;
}
} else if ((it->it_flags & ITEM_CHUNKED) == 0) {