Skip to content

Commit

Permalink
fix: bump maximum event stream message length to 24MB (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
lauzadis authored Feb 18, 2025
1 parent a0be9e4 commit 00500f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changes/ba71e47f-d546-45f2-bf44-aedaab74a966.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"id": "ba71e47f-d546-45f2-bf44-aedaab74a966",
"type": "misc",
"description": "Increase maximum event stream message length to 24MB"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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) | |
Expand Down

0 comments on commit 00500f2

Please sign in to comment.