You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reintroduce overhauled stalled stream protection and upload support
This commit unreverts 27834ae (#3485).
Original commit message:
Overhaul stalled stream protection and add upload support (#3485)
This PR overhauls the existing stalled stream protection with a new
algorithm, and also adds support for minimum throughput on upload
streams. The new algorithm adds support for differentiating between the
user or the server causing the stall, and not timing out if it's the
user causing the stall. This will fix timeout issues when a customer
makes remote service calls in between streaming pieces of information.
Copy file name to clipboardExpand all lines: CHANGELOG.next.toml
+43-1Lines changed: 43 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,4 +9,46 @@
9
9
# message = "Fix typos in module documentation for generated crates"
10
10
# references = ["smithy-rs#920"]
11
11
# meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client | server | all"}
12
-
# author = "rcoh"
12
+
# author = "rcoh"
13
+
14
+
[[smithy-rs]]
15
+
message = """
16
+
Stalled stream protection now supports request upload streams. It is currently off by default, but will be enabled by default in a future release. To enable it now, you can do the following:
Stalled stream protection now supports request upload streams. It is currently off by default, but will be enabled by default in a future release. To enable it now, you can do the following:
32
+
33
+
```rust
34
+
let config = aws_config::defaults(BehaviorVersion::latest())
message = "Stalled stream protection on downloads will now only trigger if the upstream source is too slow. Previously, stalled stream protection could be erroneously triggered if the user was slowly consuming the stream slower than the minimum speed limit."
message = "Stalled stream protection on downloads will now only trigger if the upstream source is too slow. Previously, stalled stream protection could be erroneously triggered if the user was slowly consuming the stream slower than the minimum speed limit."
Copy file name to clipboardExpand all lines: codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/config/StalledStreamProtectionConfigCustomization.kt
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -120,15 +120,12 @@ class StalledStreamProtectionOperationCustomization(
120
120
isOperationSection.AdditionalInterceptors-> {
121
121
val stalledStreamProtectionModule =RuntimeType.smithyRuntime(rc).resolve("client::stalled_stream_protection")
122
122
section.registerInterceptor(rc, this) {
123
-
// Currently, only response bodies are protected/supported because
124
-
// we can't count on hyper to poll a request body on wake.
0 commit comments