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 /t/proxyunits.t | |
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 't/proxyunits.t')
-rw-r--r-- | t/proxyunits.t | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/proxyunits.t b/t/proxyunits.t index e76c11d..49594bf 100644 --- a/t/proxyunits.t +++ b/t/proxyunits.t @@ -66,6 +66,11 @@ for my $be (@mbe) { } { + print $ps "set with the wrong number of tokens\n"; + is(scalar <$ps>, "CLIENT_ERROR parsing request\r\n", "got CLIENT_ERROR for bad syntax"); +} + +{ # Test a fix for passing through partial read data if END ends up missing. print $ps "get /b/a\r\n"; my $be = $mbe[0]; |