Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added a test case for redis pipelining + redis keepalive. also update…

…d the developer build script to use the latest ngx_http_upstream_keepalive 0.7.
  • Loading branch information...
commit 6a1c5ee6e40debecaa06e1ad73c991f710ec5dab 1 parent 83dd18e
@agentzh agentzh authored
Showing with 22 additions and 2 deletions.
  1. +2 −1  t/bugs.t
  2. +19 −0 t/pipeline.t
  3. +1 −1  util/build.sh
View
3  t/bugs.t
@@ -199,7 +199,8 @@ qq{+OK\r
}
-=== TEST 6: two pipelined multi-bulk replies
+
+=== TEST 7: two pipelined multi-bulk replies
--- config
location /set {
redis2_query subscribe foo;
View
19 t/pipeline.t
@@ -98,3 +98,22 @@ __DATA__
"+OK\r\n\$-1\r\n"
--- timeout: 3
+
+
+=== TEST 6: advanced query (2 pipelined) - keepalive
+--- http_config
+ upstream backend {
+ server 127.0.0.1:$TEST_NGINX_REDIS_PORT;
+ keepalive 100 single;
+ }
+--- config
+ location /a {
+ redis2_query set hello world;
+ redis2_query get hello;
+ redis2_pass backend;
+ }
+--- request
+ GET /a
+--- response_body eval
+"+OK\r\n\$5\r\nworld\r\n"
+
View
2  util/build.sh
@@ -20,7 +20,7 @@ ngx-build $force $version \
--add-module=$root/../ndk-nginx-module \
--add-module=$root/../set-misc-nginx-module \
--add-module=$root/../lua-nginx-module \
- --add-module=$home/work/nginx/ngx_http_upstream_keepalive-2ce9d8a1ca93 \
+ --add-module=$home/work/nginx/ngx_http_upstream_keepalive-0.7 \
--with-debug
#--add-module=$root/../eval-nginx-module \
#--add-module=$home/work/nginx/nginx_upstream_hash-0.3 \
Please sign in to comment.
Something went wrong with that request. Please try again.