diff options
author | dormando <dormando@rydia.net> | 2023-03-21 12:09:51 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2023-03-21 12:09:51 -0700 |
commit | 55cda5ce93234935fce88437083b99333d8a23dc (patch) | |
tree | 6d07d4bb1bc46f7aaeab6eedcf2eff87f8d9bb72 /t | |
parent | 9b3c946f485309cdf50f7fb1622707b5373e33f3 (diff) | |
download | memcached-55cda5ce93234935fce88437083b99333d8a23dc.tar.gz |
proxy: add conntimeout error
use a specific error when timeouts happen during connection stage vs
read/write stage. it even had a test!
Diffstat (limited to 't')
-rw-r--r-- | t/proxyconfig.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/proxyconfig.t b/t/proxyconfig.t index 233c592..8c9332c 100644 --- a/t/proxyconfig.t +++ b/t/proxyconfig.t @@ -167,7 +167,7 @@ my @holdbe = (); # avoid having the backends immediately disconnect and pollute # host, and port arguments. is(scalar @readable, 3, "all listeners became readable"); - like(<$watcher>, qr/ts=(\S+) gid=\d+ type=proxy_backend error=timeout name=\S+ port=11511/, "one backend timed out connecting"); + like(<$watcher>, qr/ts=(\S+) gid=\d+ type=proxy_backend error=conntimeout name=\S+ port=11511/, "one backend timed out connecting"); like(<$watcher>, qr/ts=(\S+) gid=\d+ type=proxy_backend error=markedbad name=\S+ port=11511/, "backend was marked bad"); for my $msrv (@readable) { |