summaryrefslogtreecommitdiff
path: root/t/proxyunits.t
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 /t/proxyunits.t
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 't/proxyunits.t')
-rw-r--r--t/proxyunits.t5
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];