Permalink
Browse files

disable auto flushing in the output filter.

  • Loading branch information...
1 parent bf7f06a commit baeb26f5f4bd58171a170651fa47968836d11b0d @agentzh agentzh committed May 28, 2010
Showing with 8 additions and 8 deletions.
  1. +4 −4 src/ngx_http_rds_json_output.c
  2. +4 −4 test/t/openresty.t
View
8 src/ngx_http_rds_json_output.c
@@ -28,7 +28,7 @@ ngx_http_rds_json_output_literal(ngx_http_request_t *r,
b = cl->buf;
b->tag = ctx->tag;
- b->flush = 1;
+ b->flush = 0;
b->memory = 1;
b->temporary = 0;
@@ -84,7 +84,7 @@ ngx_http_rds_json_output_header(ngx_http_request_t *r,
b = cl->buf;
b->tag = ctx->tag;
- b->flush = 1;
+ b->flush = 0;
b->memory = 1;
b->temporary = 1;
@@ -203,7 +203,7 @@ ngx_http_rds_json_output_field(ngx_http_request_t *r,
b = cl->buf;
b->tag = ctx->tag;
- b->flush = 1;
+ b->flush = 0;
b->memory = 1;
b->temporary = 1;
@@ -455,7 +455,7 @@ ngx_http_rds_json_output_more_field_data(ngx_http_request_t *r,
b = cl->buf;
b->tag = ctx->tag;
- b->flush = 1;
+ b->flush = 0;
b->memory = 1;
b->temporary = 1;
View
8 test/t/openresty.t
@@ -3,12 +3,12 @@
use lib 'lib';
use Test::Nginx::Socket;
-repeat_each(2);
+repeat_each(100);
#repeat_each(1);
-#worker_connections(2048);
+worker_connections(1024);
workers(1);
-#master_on;
+master_on;
log_level('warn');
plan tests => repeat_each() * 3 * blocks();
@@ -17,7 +17,7 @@ our $http_config = <<'_EOC_';
upstream backend {
drizzle_server 127.0.0.1:3306 dbname=test
password=some_pass user=monty protocol=mysql;
- drizzle_keepalive max=400 overflow=ignore;
+ drizzle_keepalive max=400 overflow=reject;
}
_EOC_

0 comments on commit baeb26f

Please sign in to comment.