From e87150ae4abc730381f66cf9463328dfd5b7bf89 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Mon, 17 Feb 2025 12:33:25 -0500 Subject: [PATCH] Bump to 24MB --- .changes/ba71e47f-d546-45f2-bf44-aedaab74a966.json | 5 +++++ .../kotlin/runtime/awsprotocol/eventstream/Message.kt | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changes/ba71e47f-d546-45f2-bf44-aedaab74a966.json diff --git a/.changes/ba71e47f-d546-45f2-bf44-aedaab74a966.json b/.changes/ba71e47f-d546-45f2-bf44-aedaab74a966.json new file mode 100644 index 0000000000..253c9f7e32 --- /dev/null +++ b/.changes/ba71e47f-d546-45f2-bf44-aedaab74a966.json @@ -0,0 +1,5 @@ +{ + "id": "ba71e47f-d546-45f2-bf44-aedaab74a966", + "type": "misc", + "description": "Increase maximum event stream message length to 24MB" +} \ No newline at end of file diff --git a/runtime/protocol/aws-event-stream/common/src/aws/smithy/kotlin/runtime/awsprotocol/eventstream/Message.kt b/runtime/protocol/aws-event-stream/common/src/aws/smithy/kotlin/runtime/awsprotocol/eventstream/Message.kt index 10d19fc603..6280520355 100644 --- a/runtime/protocol/aws-event-stream/common/src/aws/smithy/kotlin/runtime/awsprotocol/eventstream/Message.kt +++ b/runtime/protocol/aws-event-stream/common/src/aws/smithy/kotlin/runtime/awsprotocol/eventstream/Message.kt @@ -12,15 +12,15 @@ import aws.smithy.kotlin.runtime.text.encoding.encodeToHex internal const val MESSAGE_CRC_BYTE_LEN = 4 -// max message size is 16 MB -internal const val MAX_MESSAGE_SIZE = 16 * 1024 * 1024 +// max message size is 24 MB +internal const val MAX_MESSAGE_SIZE = 24 * 1024 * 1024 // max header size is 128 KB internal const val MAX_HEADER_SIZE = 128 * 1024 /* Message Wire Format - See also: https://docs.aws.amazon.com/transcribe/latest/dg/event-stream-med.html + See also: https://docs.aws.amazon.com/transcribe/latest/dg/streaming-setting-up.html +--------------------------------------------------------------------+ -- | Total Len (32) | |