Skip to content

Commit

Permalink
tower: update dependency to 0.4.7 (#990)
Browse files Browse the repository at this point in the history
This updates `tower` to v0.4.7. This picks up tower-rs/tower#581, which
fixes a task leak in `SpawnReady` that resulted in a memory leak in the
proxy.
  • Loading branch information
hawkw authored and olix0r committed Apr 29, 2021
1 parent 86b73aa commit ba67188
Show file tree
Hide file tree
Showing 36 changed files with 42 additions and 105 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2237,9 +2237,9 @@ dependencies = [

[[package]]
name = "tower"
version = "0.4.5"
version = "0.4.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "713c629c07a3a97f741c140e474e7304294fabec66a43a33f0832e98315ab07f"
checksum = "bf0aa6dfc29148c3826708dabbfa83c121eeb84df4d1468220825e3a33651687"
dependencies = [
"futures-core",
"futures-util",
Expand Down
2 changes: 1 addition & 1 deletion hyper-balance/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ futures = "0.3.9"
http = "0.2"
hyper = "0.14.2"
pin-project = "1"
tower = { version = "0.4.5", default-features = false, features = ["load"] }
tower = { version = "0.4.7", default-features = false, features = ["load"] }
tokio = { version = "1", features = ["macros"] }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion linkerd/app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ regex = "1.0.0"
thiserror = "1.0"
tokio = { version = "1", features = ["rt"] }
tonic = { version = "0.4", default-features = false, features = ["prost"] }
tower = "0.4"
tower = "0.4.7"
tracing = "0.1.23"
4 changes: 1 addition & 3 deletions linkerd/app/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ tracing = "0.1.23"
pin-project = "1"

[dependencies.tower]
version = "0.4"
# disable tower's tracing `log` integration for performance reasons, since we
# will consume tower's traces as traces.
version = "0.4.7"
default-features = false
features = [
"buffer",
Expand Down
4 changes: 2 additions & 2 deletions linkerd/app/gateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ linkerd-app-inbound = { path = "../inbound" }
linkerd-app-outbound = { path = "../outbound" }
thiserror = "1.0"
tokio = { version = "1", features = ["sync"] }
tower = { version = "0.4.5", default-features = false }
tower = { version = "0.4.7", default-features = false }
tracing = "0.1.23"

[dev-dependencies]
tokio = { version = "1", features = ["rt", "macros"] }
tokio-test = "0.4"
tower = { version = "0.4.5", default-features = false, features = ["util"] }
tower = { version = "0.4.7", default-features = false, features = ["util"] }
tower-test = "0.4"
linkerd-app-test = { path = "../test" }
10 changes: 1 addition & 9 deletions linkerd/app/inbound/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,9 @@ indexmap = "1.0"
linkerd-app-core = { path = "../core" }
thiserror = "1.0"
tokio = { version = "1", features = ["sync"] }
tower = { version = "0.4.7", features = ["util"] }
tracing = "0.1.23"

[dependencies.tower]
version = "0.4"
# disable tower's tracing `log` integration for performance reasons, since we
# will consume tower's traces as traces.
default-features = false
features = [
"util",
]

[dev-dependencies]
hyper = { version = "0.14.2", features = ["http1", "http2"] }
linkerd-app-test = { path = "../test" }
Expand Down
2 changes: 1 addition & 1 deletion linkerd/app/integration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ socket2 = "0.3.12"
rustls = "0.19"
tokio = { version = "1", features = ["io-util", "net", "rt", "macros"]}
tokio-rustls = "0.22"
tower = { version = "0.4.5", default-features = false}
tower = { version = "0.4.7", default-features = false}
tonic = { version = "0.4", default-features = false }
tracing = "0.1.23"
webpki = "0.21"
Expand Down
10 changes: 1 addition & 9 deletions linkerd/app/outbound/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,10 @@ linkerd-identity = { path = "../../identity" }
linkerd-retry = { path = "../../retry" }
thiserror = "1.0"
tokio = { version = "1", features = ["sync"]}
tower = { version = "0.4.7", features = ["util"]}
tracing = "0.1.23"
pin-project = "1"

[dependencies.tower]
version = "0.4"
# disable tower's tracing `log` integration for performance reasons, since we
# will consume tower's traces as traces.
default-features = false
features = [
"util",
]

[dev-dependencies]
hyper = { version = "0.14.2", features = ["http1", "http2"] }
ipnet = "2.0"
Expand Down
2 changes: 1 addition & 1 deletion linkerd/app/outbound/src/http/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async fn profile_endpoint_propagates_conn_errors() {
});

let rsp = client
.ready_and()
.ready()
.await
.expect("Client must not fail")
.call(
Expand Down
2 changes: 1 addition & 1 deletion linkerd/app/test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ linkerd-io = { path = "../../io", features = ["tokio-test"] }
regex = "1"
tokio = { version = "1", features = ["io-util", "net", "rt", "sync"]}
tokio-test = "0.4"
tower = { version = "0.4.5", default-features = false}
tower = { version = "0.4.7", default-features = false}
tracing = "0.1.23"
tracing-subscriber = "0.2.16"

Expand Down
4 changes: 2 additions & 2 deletions linkerd/app/test/src/http_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ where
{
let (client_io, server_io) = io::duplex(4096);
let f = server
.ready_and()
.ready()
.await
.map_err(Into::into)
.expect("proxy server failed to become ready")
Expand Down Expand Up @@ -108,7 +108,7 @@ pub async fn http_request(
request: Request<Body>,
) -> Response<Body> {
let rsp = client
.ready_and()
.ready()
.await
.expect("Client must not fail")
.call(request)
Expand Down
2 changes: 1 addition & 1 deletion linkerd/cache/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ linkerd-error = { path = "../error" }
linkerd-stack = { path = "../stack" }
parking_lot = "0.11"
tokio = { version = "1", default-features = false, features = ["rt", "sync", "time"] }
tower = { version = "0.4.5", default-features = false, features = ["util"] }
tower = { version = "0.4.7", default-features = false, features = ["util"] }
tracing = "0.1.23"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion linkerd/concurrency-limit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ publish = false
futures = "0.3.9"
linkerd-stack = { path = "../stack" }
tokio = { version = "1", features = ["sync"] }
tower = { version = "0.4.5", default-features = false }
tower = { version = "0.4.7", default-features = false }
tracing = "0.1.23"
pin-project = "1"
2 changes: 1 addition & 1 deletion linkerd/detect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ linkerd-io = { path = "../io" }
linkerd-stack = { path = "../stack" }
tokio = { version = "1", features = ["time"] }
thiserror = "1.0"
tower = "0.4"
tower = "0.4.7"
tracing = "0.1.23"
2 changes: 1 addition & 1 deletion linkerd/drain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ futures = "0.3.9"
tokio = { version = "1", features = ["macros", "sync"] }

linkerd-stack = { path = "../stack", optional = true }
tower = { version = "0.4.5", default-features = false, optional = true }
tower = { version = "0.4.7", default-features = false, optional = true }

[dev-dependencies]
pin-project = "1"
Expand Down
2 changes: 1 addition & 1 deletion linkerd/error-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ publish = false
futures = "0.3.9"
indexmap = "1.0"
linkerd-metrics = { path = "../metrics" }
tower = { version = "0.4.5", default-features = false }
tower = { version = "0.4.7", default-features = false }
pin-project = "1"
2 changes: 1 addition & 1 deletion linkerd/error-respond/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ publish = false
[dependencies]
futures = "0.3.9"
linkerd-error = { path = "../error" }
tower = { version = "0.4.5", default-features = false }
tower = { version = "0.4.7", default-features = false }
pin-project = "1"
2 changes: 1 addition & 1 deletion linkerd/http-classify/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ publish = false
http = "0.2"
linkerd-error = { path = "../error" }
linkerd-stack = { path = "../stack" }
tower = { version = "0.4.5", default-features = false }
tower = { version = "0.4.7", default-features = false }
7 changes: 1 addition & 6 deletions linkerd/http-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ linkerd-error = { path = "../error" }
linkerd-http-classify = { path = "../http-classify" }
linkerd-metrics = { path = "../metrics" }
linkerd-stack = { path = "../stack" }
tower = "0.4.7"
tracing = "0.1.23"
pin-project = "1"

[dependencies.tower]
version = "0.4"
# disable tower's tracing `log` integration for performance reasons, since we
# will consume tower's traces as traces.
default-features = false
2 changes: 1 addition & 1 deletion linkerd/opencensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ linkerd-error = { path = "../error" }
linkerd-metrics = { path = "../metrics" }
opencensus-proto = { path = "../../opencensus-proto" }
tonic = { version = "0.4", default-features = false, features = ["prost", "codegen"] }
tower = { version = "0.4.5", default-features = false }
tower = { version = "0.4.7", default-features = false }
tokio = { version = "1", features = ["macros", "sync", "time"] }
tracing = "0.1.23"
2 changes: 1 addition & 1 deletion linkerd/proxy/api-resolve/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ indexmap = "1.0"
pin-project = "1"
prost = "0.7"
tonic = { version = "0.4", default-features = false }
tower = { version = "0.4.5", default-features = false }
tower = { version = "0.4.7", default-features = false }
tracing = "0.1.23"
2 changes: 1 addition & 1 deletion linkerd/proxy/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ Core interfaces needed to implement proxy components
[dependencies]
futures = "0.3.9"
linkerd-error = { path = "../../error" }
tower = { version = "0.4.5", default-features = false }
tower = { version = "0.4.7", default-features = false }
pin-project = "1"
10 changes: 2 additions & 8 deletions linkerd/proxy/discover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,11 @@ linkerd-error = { path = "../../error" }
linkerd-proxy-core = { path = "../core" }
linkerd-stack = { path = "../../stack" }
tokio = { version = "1", features = ["sync", "time"] }
tower = { version = "0.4.7", features = ["discover"] }
tracing = "0.1.23"
pin-project = "1"

[dependencies.tower]
version = "0.4"
# disable tower's tracing `log` integration for performance reasons, since we
# will consume tower's traces as traces.
default-features = false
features = ["discover"]

[dev-dependencies]
async-stream = "0.3"
tokio = { version = "1", features = ["macros", "rt"] }
tower = { version = "0.4.5", default-features = false, features = ["discover", "util"]}
tower = { version = "0.4.7", default-features = false, features = ["discover", "util"]}
7 changes: 1 addition & 6 deletions linkerd/proxy/dns-resolve/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,5 @@ linkerd-dns = { path = "../../dns" }
linkerd-proxy-core = { path = "../core" }
linkerd-stack = { path = "../../stack" }
tokio = { version = "1", features = ["sync"] }
tower = "0.4.7"
tracing = "0.1.9"

[dependencies.tower]
version = "0.4"
# disable tower's tracing `log` integration for performance reasons, since we
# will consume tower's traces as traces.
default-features = false
2 changes: 1 addition & 1 deletion linkerd/proxy/http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ linkerd-timeout = { path = "../../timeout" }
rand = "0.8"
thiserror = "1.0"
tokio = { version = "1", features = ["time", "rt"] }
tower = { version = "0.4.5", default-features = false, features = ["balance", "load", "discover"] }
tower = { version = "0.4.7", default-features = false, features = ["balance", "load", "discover"] }
tracing = "0.1.23"
try-lock = "0.2"
pin-project = "1"
Expand Down
9 changes: 2 additions & 7 deletions linkerd/proxy/resolve/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ futures = "0.3.9"
linkerd-error = { path = "../../error" }
linkerd-proxy-core = { path = "../core" }
thiserror = "1.0"
tower = "0.4.7"
tracing = "0.1"
pin-project = "1"

[dependencies.tower]
version = "0.4"
# disable tower's tracing `log` integration for performance reasons, since we
# will consume tower's traces as traces.
default-features = false
pin-project = "1"
2 changes: 1 addition & 1 deletion linkerd/proxy/tap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ linkerd-tls = { path = "../../tls" }
rand = { version = "0.8" }
thiserror = "1.0"
tokio = { version = "1", features = ["time"]}
tower = { version = "0.4.5", default-features = false }
tower = { version = "0.4.7", default-features = false }
tonic = { version = "0.4", default-features = false }
tracing = "0.1.23"
pin-project = "1"
Expand Down
2 changes: 1 addition & 1 deletion linkerd/proxy/tcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ linkerd-error = { path = "../../error" }
linkerd-stack = { path = "../../stack" }
rand = "0.8"
tokio = { version = "1" }
tower = { version = "0.4.5", default-features = false, features = ["balance", "load", "discover"] }
tower = { version = "0.4.7", default-features = false, features = ["balance", "load", "discover"] }
pin-project = "1"
2 changes: 1 addition & 1 deletion linkerd/reconnect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ publish = false
linkerd-error = { path = "../error" }
linkerd-stack = { path = "../stack" }
futures = "0.3.9"
tower = { version = "0.4.5", default-features = false }
tower = { version = "0.4.7", default-features = false }
tracing = "0.1.23"
pin-project = "1"
2 changes: 1 addition & 1 deletion linkerd/retry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ publish = false
[dependencies]
linkerd-error = { path = "../error" }
linkerd-stack = { path = "../stack" }
tower = { version = "0.4.5", default-features = false, features = ["retry", "util"] }
tower = { version = "0.4.7", default-features = false, features = ["retry", "util"] }
tracing = "0.1.23"
pin-project = "1"
12 changes: 1 addition & 11 deletions linkerd/service-profiles/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,10 @@ regex = "1.0.0"
tokio = { version = "1", features = ["macros", "rt", "sync", "time"] }
async-stream = "0.3"
tonic = { version = "0.4", default-features = false }
tower = { version = "0.4.7", features = [ "ready-cache", "retry", "util"] }
tracing = "0.1.23"
pin-project = "1"

[dependencies.tower]
version = "0.4"
# disable tower's tracing `log` integration for performance reasons, since we
# will consume tower's traces as traces.
default-features = false
features = [
"ready-cache",
"retry",
"util",
]

[dev-dependencies]
linkerd2-proxy-api = { git = "https://github.com/linkerd/linkerd2-proxy-api", tag = "v0.1.18", features = ["arbitrary"] }
prost-types = "0.7.0"
Expand Down
2 changes: 1 addition & 1 deletion linkerd/stack/metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ publish = false
[dependencies]
indexmap = "1.0"
linkerd-metrics = { path = "../../metrics" }
tower = { version = "0.4.5", default-features = false }
tower = { version = "0.4.7", default-features = false }
tokio = { version = "1", features = ["time"] }
7 changes: 1 addition & 6 deletions linkerd/stack/tracing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ publish = false
futures = "0.3.9"
linkerd-error = { path = "../../error" }
linkerd-stack = { path = ".." }
tower = "0.4.7"
tracing = "0.1.25"
pin-project = "1"

[dependencies.tower]
version = "0.4"
# disable tower's tracing `log` integration for performance reasons, since we
# will consume tower's traces as traces.
default-features = false
11 changes: 1 addition & 10 deletions linkerd/timeout/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,7 @@ thiserror = "1"
tracing = "0.1.23"
pin-project = "1"
tokio = { version = "1", features = ["time"] }

[dependencies.tower]
version = "0.4"
# disable tower's tracing `log` integration for performance reasons, since we
# will consume tower's traces as traces.
default-features = false
features = [
"util",
"make",
]
tower = { version = "0.4.7", features = ["util", "make"] }

[dev-dependencies]
tower-test = "0.4"
Expand Down
4 changes: 2 additions & 2 deletions linkerd/tls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ rustls = "0.19"
thiserror = "1.0"
tokio = { version = "1", features = ["macros", "time"]}
tokio-rustls = "0.22"
tower = "0.4.5"
tower = "0.4.7"
tracing = "0.1.23"
webpki = "0.21"
untrusted = "0.7"
Expand All @@ -29,5 +29,5 @@ untrusted = "0.7"
linkerd-identity = { path = "../identity", features = ["test-util"] }
linkerd-proxy-transport = { path = "../proxy/transport" }
tokio = { version = "1", features = ["rt-multi-thread"] }
tower = { version = "0.4.5", default-features = false, features = ["util"] }
tower = { version = "0.4.7", default-features = false, features = ["util"] }
tracing-subscriber = "0.2.16"
2 changes: 1 addition & 1 deletion linkerd/trace-context/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ linkerd-error = { path = "../error" }
linkerd-stack = { path = "../stack" }
rand = "0.8"
thiserror = "1.0"
tower = { version = "0.4.5", default-features = false, features = ["util"] }
tower = { version = "0.4.7", default-features = false, features = ["util"] }
tracing = "0.1.2"

0 comments on commit ba67188

Please sign in to comment.