Skip to content

Commit d604613

Browse files
authored
Merge pull request #6141 from cloudflare/max-attachment-size
increase WebSocket attachment size limit from 2KB to 16KB
2 parents 997a856 + a7a6250 commit d604613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/workerd/api/web-socket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ class WebSocket: public EventTarget {
425425
inline static const size_t SUGGESTED_MAX_MESSAGE_SIZE = 1u << 20;
426426

427427
// Maximum size of a WebSocket attachment.
428-
inline static const size_t MAX_ATTACHMENT_SIZE = 1024 * 2;
428+
inline static const size_t MAX_ATTACHMENT_SIZE = 1024 * 16;
429429

430430
struct AwaitingConnection {
431431
// A canceler associated with the pending websocket connection for `new Websocket()`.

0 commit comments

Comments
 (0)