Mercurial > hg > nginx-tests
diff memcached_keepalive.t @ 513:1a73389a19c4
Tests: fixed tests with multi-threaded memcached.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 12 Dec 2014 17:10:04 +0300 |
parents | d5bf5942a8b2 |
children | c0b4ae82fd9d |
line wrap: on
line diff
--- a/memcached_keepalive.t +++ b/memcached_keepalive.t @@ -101,6 +101,12 @@ if ($memhelp =~ /-U/) { push @memopts1, '-U', '0'; push @memopts2, '-U', '0'; } +if ($memhelp =~ /-t/) { + # for connection stats consistency in threaded memcached 1.3+ + + push @memopts1, '-t', '1'; + push @memopts2, '-t', '1'; +} $t->run_daemon('memcached', '-l', '127.0.0.1', '-p', '8081', @memopts1); $t->run_daemon('memcached', '-l', '127.0.0.1', '-p', '8082', @memopts2);