Skip to content

Commit 7d6c89c

Browse files
committed
increase WebSocket attachment size limit from 2KB to 16KB
1 parent d0eaa7e commit 7d6c89c

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
@@ -410,7 +410,7 @@ class WebSocket: public EventTarget {
410410
inline static const size_t SUGGESTED_MAX_MESSAGE_SIZE = 1u << 20;
411411

412412
// Maximum size of a WebSocket attachment.
413-
inline static const size_t MAX_ATTACHMENT_SIZE = 1024 * 2;
413+
inline static const size_t MAX_ATTACHMENT_SIZE = 1024 * 16;
414414

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

0 commit comments

Comments
 (0)