Skip to content

Commit 0b0d882

Browse files
authored
Increase the maxHttpBufferSize (#6409)
1 parent f1a1b6b commit 0b0d882

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.github/workflows/frontend-admin-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
run: "sed -i 's/\"enableAdminUITests\": false/\"enableAdminUITests\": true,\\n\"users\":{\"admin\":{\"password\":\"changeme1\",\"is_admin\":true}}/' settings.json"
8686
-
8787
name: increase maxHttpBufferSize
88-
run: "sed -i 's/\"maxHttpBufferSize\": 10000/\"maxHttpBufferSize\": 10000000/' settings.json"
88+
run: "sed -i 's/\"maxHttpBufferSize\": 50000/\"maxHttpBufferSize\": 10000000/' settings.json"
8989
-
9090
name: Disable import/export rate limiting
9191
run: |

doc/docker.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ For the editor container, you can also make it full width by adding `full-width-
510510

511511
| `SOCKETIO_MAX_HTTP_BUFFER_SIZE`
512512
| The maximum size (in bytes) of a single message accepted via Socket.IO. If a client sends a larger message, its connection gets closed to prevent DoS (memory exhaustion) attacks.
513-
| `10000`
513+
| `50000`
514514

515515
| `LOAD_TEST`
516516
| Allow Load Testing tools to hit the Etherpad Instance. WARNING: this will disable security on the instance.

doc/docker.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ For the editor container, you can also make it full width by adding `full-width-
213213
| `FOCUS_LINE_PERCENTAGE_ARROW_UP` | Percentage of viewport height to be additionally scrolled when user presses arrow up in the line of the top of the viewport. Set to 0 to let the scroll to be handled as default by Etherpad | `0` |
214214
| `FOCUS_LINE_DURATION` | Time (in milliseconds) used to animate the scroll transition. Set to 0 to disable animation | `0` |
215215
| `FOCUS_LINE_CARET_SCROLL` | Flag to control if it should scroll when user places the caret in the last line of the viewport | `false` |
216-
| `SOCKETIO_MAX_HTTP_BUFFER_SIZE` | The maximum size (in bytes) of a single message accepted via Socket.IO. If a client sends a larger message, its connection gets closed to prevent DoS (memory exhaustion) attacks. | `10000` |
216+
| `SOCKETIO_MAX_HTTP_BUFFER_SIZE` | The maximum size (in bytes) of a single message accepted via Socket.IO. If a client sends a larger message, its connection gets closed to prevent DoS (memory exhaustion) attacks. | `50000` |
217217
| `LOAD_TEST` | Allow Load Testing tools to hit the Etherpad Instance. WARNING: this will disable security on the instance. | `false` |
218218
| `DUMP_ON_UNCLEAN_EXIT` | Enable dumping objects preventing a clean exit of Node.js. WARNING: this has a significant performance impact. | `false` |
219219
| `EXPOSE_VERSION` | Expose Etherpad version in the web interface and in the Server http header. Do not enable on production machines. | `false` |

settings.json.docker

+1-1
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@
544544
* value to work properly, but increasing the value increases susceptibility
545545
* to denial of service attacks (malicious clients can exhaust memory).
546546
*/
547-
"maxHttpBufferSize": "${SOCKETIO_MAX_HTTP_BUFFER_SIZE:10000}"
547+
"maxHttpBufferSize": "${SOCKETIO_MAX_HTTP_BUFFER_SIZE:50000}"
548548
},
549549

550550
/*

settings.json.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@
537537
* value to work properly, but increasing the value increases susceptibility
538538
* to denial of service attacks (malicious clients can exhaust memory).
539539
*/
540-
"maxHttpBufferSize": 10000
540+
"maxHttpBufferSize": 50000
541541
},
542542

543543
/*

src/node/utils/Settings.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ exports.socketIo = {
153153
* properly, but increasing the value increases susceptibility to denial of service attacks
154154
* (malicious clients can exhaust memory).
155155
*/
156-
maxHttpBufferSize: 10000,
156+
maxHttpBufferSize: 50000,
157157
};
158158

159159

0 commit comments

Comments
 (0)