fixed buggy test cases stuck on request body reading, which were exposed by the previous commit.

This commit is contained in:
Yichun Zhang (agentzh) 2015-06-18 00:12:04 +08:00
Родитель 6fa6e97cc4
Коммит 0be132078d
11 изменённых файлов: 1 добавлений и 35 удалений

Просмотреть файл

@ -487,7 +487,7 @@ ngx_http_lua_send_chain_link(ngx_http_request_t *r, ngx_http_lua_ctx_t *ctx,
}
if (in == NULL) {
/* last buf to be sent */
dd("last buf to be sent");
#if 1
if (!r->request_body && r == r->main) {

Просмотреть файл

@ -292,8 +292,6 @@ hello foo
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;
@ -346,4 +344,3 @@ free request
end
--- error_log
attempt to abort with pending subrequests

Просмотреть файл

@ -1102,8 +1102,6 @@ after
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;
@ -1184,8 +1182,6 @@ attempt to abort with pending subrequests
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;
@ -1276,8 +1272,6 @@ attempt to abort with pending subrequests
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;
@ -1336,4 +1330,3 @@ free request
end
--- error_log
attempt to abort with pending subrequests

Просмотреть файл

@ -50,8 +50,6 @@ __DATA__
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;

Просмотреть файл

@ -293,8 +293,6 @@ hello foo
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;

Просмотреть файл

@ -1084,8 +1084,6 @@ after
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;
@ -1166,8 +1164,6 @@ attempt to abort with pending subrequests
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;
@ -1258,8 +1254,6 @@ attempt to abort with pending subrequests
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;

Просмотреть файл

@ -50,8 +50,6 @@ __DATA__
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;

Просмотреть файл

@ -1081,8 +1081,6 @@ after
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;
@ -1162,8 +1160,6 @@ attempt to abort with pending subrequests
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;
@ -1254,8 +1250,6 @@ attempt to abort with pending subrequests
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;

Просмотреть файл

@ -289,8 +289,6 @@ hello foo
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;

Просмотреть файл

@ -50,8 +50,6 @@ __DATA__
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;

Просмотреть файл

@ -288,8 +288,6 @@ hello foo
}
--- request
POST /lua
--- more_headers
Content-Length: 1024
--- stap2 eval: $::StapScript
--- stap eval
<<'_EOC_' . $::GCScript;