Skip to content

Commit

Permalink
wasm: Force stop iteration after local response is sent (envoyproxy#1…
Browse files Browse the repository at this point in the history
…3930)

Resolves envoyproxy#13857

ref:
-proxy-wasm/proxy-wasm-rust-sdk#44
-proxy-wasm/proxy-wasm-cpp-host#88
-proxy-wasm/proxy-wasm-cpp-host#93

Signed-off-by: mathetake <takeshi@tetrate.io>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
  • Loading branch information
mathetake authored and PiotrSikora committed Nov 19, 2020
1 parent 6dffa95 commit 3b270cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bazel/repository_locations.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,8 @@ DEPENDENCY_REPOSITORIES_SPEC = dict(
project_name = "WebAssembly for Proxies (C++ host implementation)",
project_desc = "WebAssembly for Proxies (C++ host implementation)",
project_url = "https://github.com/proxy-wasm/proxy-wasm-cpp-host",
version = "40fd3d03842c07d65fed907a6b6ed0f89d68d531",
sha256 = "b5ae746e66b6209ea0cce86d6c21de99dacbec1da9cdadd53a9ec46bc296a3ba",
version = "b7d3d13d75bb6b50f192252258bb9583bf723fa4",
sha256 = "ae639f94a80adbe915849bccb32346720c59a579db09918e44aefafed6cbb100",
strip_prefix = "proxy-wasm-cpp-host-{version}",
urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-host/archive/{version}.tar.gz"],
use_category = ["dataplane_ext"],
Expand All @@ -881,7 +881,7 @@ DEPENDENCY_REPOSITORIES_SPEC = dict(
"envoy.filters.network.wasm",
"envoy.stat_sinks.wasm",
],
last_updated = "2020-10-27",
last_updated = "2020-11-10",
cpe = "N/A",
),
# TODO: upgrade to the latest version (1.41 currently fails tests)
Expand Down
3 changes: 2 additions & 1 deletion test/extensions/filters/http/wasm/wasm_filter_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,8 @@ TEST_P(WasmHttpFilterTest, RootId2) {
setupFilter("context2");
EXPECT_CALL(filter(), log_(spdlog::level::debug, Eq(absl::string_view("onRequestHeaders2 2"))));
Http::TestRequestHeaderMapImpl request_headers;
EXPECT_EQ(Http::FilterHeadersStatus::Continue, filter().decodeHeaders(request_headers, true));
EXPECT_EQ(Http::FilterHeadersStatus::StopAllIterationAndWatermark,
filter().decodeHeaders(request_headers, true));
}

} // namespace Wasm
Expand Down

0 comments on commit 3b270cb

Please sign in to comment.