mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-07-17 16:47:05 +00:00
fix: increase max socket.io message size to 10MB for large pastes (#7474)
* fix: increase max socket.io message size to 10MB for large pastes The default maxHttpBufferSize of 50KB caused socket.io to drop connections when pasting >10,000 characters. Increased to 10MB which safely accommodates large paste operations. Fixes #4951 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: reduce default maxHttpBufferSize to 1MB 10MB was too generous and creates a DoS vector. 1MB (socket.io's own default) is sufficient for large pastes while limiting memory abuse. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2814e5b913
commit
29faec4a04
5 changed files with 73 additions and 16 deletions
|
|
@ -573,13 +573,17 @@
|
|||
|
||||
"socketIo": {
|
||||
/*
|
||||
* Maximum permitted client message size (in bytes). All messages from
|
||||
* clients that are larger than this will be rejected. Large values make it
|
||||
* possible to paste large amounts of text, and plugins may require a larger
|
||||
* value to work properly, but increasing the value increases susceptibility
|
||||
* to denial of service attacks (malicious clients can exhaust memory).
|
||||
* Maximum permitted client message size (in bytes). This controls the
|
||||
* maximum single-message size for socket.io and directly affects large
|
||||
* paste operations. All messages from clients that are larger than this
|
||||
* will be rejected. Large values make it possible to paste large amounts
|
||||
* of text, and plugins may require a larger value to work properly, but
|
||||
* increasing the value increases susceptibility to denial of service
|
||||
* attacks (malicious clients can exhaust memory).
|
||||
*
|
||||
* 1MB accommodates large pastes while still preventing abuse.
|
||||
*/
|
||||
"maxHttpBufferSize": 50000
|
||||
"maxHttpBufferSize": 1000000
|
||||
},
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue