Skip to content

Commit 9312b05

Browse files
authored
Reduce Max Message Size to 24MB (#125)
1 parent 25bc170 commit 9312b05

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

include/aws/event-stream/event_stream.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
AWS_PUSH_SANE_WARNING_LEVEL
1717

1818
#define AWS_C_EVENT_STREAM_PACKAGE_ID 4
19-
/* max message size is technically unbounded on the client side, and validated on the server side but we don't want to
20-
* allocate large buffers in case of bugs. 256 MB is a reasonably large buffer size limit. Current service-
21-
* side max is 24 MB, likely to increase in future.
19+
/* Current service-side max is 24 MB, likely to increase in future.
2220
* This is encoded on the wire in 4 bytes, and could technically be larger (up to INT32_MAX). */
23-
#define AWS_EVENT_STREAM_MAX_MESSAGE_SIZE (256 * 1024 * 1024)
21+
#define AWS_EVENT_STREAM_MAX_MESSAGE_SIZE (24 * 1024 * 1024)
2422

2523
/* Max total size for headers.
2624
* This is encoded on the wire in 4 bytes, and could technically be larger (up to INT32_MAX). */

0 commit comments

Comments
 (0)