summaryrefslogtreecommitdiff
path: root/proxy_network.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-11-30 22:13:33 -0800
committerdormando <dormando@rydia.net>2022-11-30 22:13:33 -0800
commit20cf8989cad866c9ffa0afbf8b06f843e33cc850 (patch)
tree3599f4495a21eb4dcb5704b547696509d57f5f84 /proxy_network.c
parentda90927bb68e83b80ef0a24adece28118a0d6ed3 (diff)
downloadmemcached-20cf8989cad866c9ffa0afbf8b06f843e33cc850.tar.gz
proxy: fix partial response read handling
previous code would disconnect the backend on a short read.
Diffstat (limited to 'proxy_network.c')
-rw-r--r--proxy_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy_network.c b/proxy_network.c
index 37c4a99..c2e8555 100644
--- a/proxy_network.c
+++ b/proxy_network.c
@@ -625,7 +625,7 @@ static int proxy_backend_drive_machine(mcp_backend_t *be) {
if (r->status == MCMC_ERR) {
P_DEBUG("%s: mcmc_read failed [%d]\n", __func__, r->status);
if (r->resp.code == MCMC_WANT_READ) {
- return EV_READ;
+ return 0;
}
flags = P_BE_FAIL_PARSING;
stop = true;