diff options
author | dormando <dormando@rydia.net> | 2023-04-03 14:30:15 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2023-04-03 14:30:15 -0700 |
commit | 41be027140ac4c42564e472178e88ed149570fbd (patch) | |
tree | a83254d24586705bfb4c408ac488e189a67f997f /proxy_internal.c | |
parent | 8f9a2e653dedcabd7f1932e73e73e15c940f3d92 (diff) | |
download | memcached-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.c | 2 |
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) { |