Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changelog/1f03d280f30349f1822b03d3e6a29fec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "1f03d280-f303-49f1-822b-03d3e6a29fec",
"type": "bugfix",
"description": "Deprecate http.AddResponseReadTimeoutMiddleware.",
"modules": [
"."
]
}
8 changes: 8 additions & 0 deletions .changelog/8cb021f3ad794653afac4d9b2d23827f.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "8cb021f3-ad79-4653-afac-4d9b2d23827f",
"type": "bugfix",
"description": "Remove arbitrary read timeout on GetRecords which was causing response read panic. See #2752.",
"modules": [
"service/kinesis"
]
}
5 changes: 5 additions & 0 deletions aws/transport/http/timeout_read_closer.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ func (r *timeoutReadCloser) Close() error {

// AddResponseReadTimeoutMiddleware adds a middleware to the stack that wraps the
// response body so that a read that takes too long will return an error.
//
// Deprecated: This API was previously exposed to customize behavior of the
// Kinesis service. That customization has been removed and this middleware's
// implementation can cause panics within the standard library networking loop.
// See #2752.
func AddResponseReadTimeoutMiddleware(stack *middleware.Stack, duration time.Duration) error {
return stack.Deserialize.Add(&readTimeout{duration: duration}, middleware.After)
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ software.amazon.smithy.aws.go.codegen.customization.service.s3.S3ContentSHA256He
software.amazon.smithy.aws.go.codegen.customization.service.s3.BackfillS3ObjectSizeMemberShapeType
software.amazon.smithy.aws.go.codegen.customization.service.machinelearning.MachineLearningCustomizations
software.amazon.smithy.aws.go.codegen.customization.service.s3.S3AcceptEncodingGzip
software.amazon.smithy.aws.go.codegen.customization.service.kinesis.KinesisCustomizations
software.amazon.smithy.aws.go.codegen.customization.service.s3.S3ErrorWith200Status
software.amazon.smithy.aws.go.codegen.customization.service.route53.Route53Customizations
software.amazon.smithy.aws.go.codegen.customization.PresignURLAutoFill
Expand Down
5 changes: 0 additions & 5 deletions service/kinesis/api_op_GetRecords.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions service/kinesis/internal/customizations/readtimeout.go

This file was deleted.

1 change: 0 additions & 1 deletion service/kinesis/snapshot/api_op_GetRecords.go.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,5 @@ GetRecords
InterceptBeforeDeserialization
AddTimeOffsetMiddleware
RecordResponseTiming
ReadResponseTimeout
RequestResponseLogger
InterceptTransmit
Loading