security: limit socketio to 1M chars

pull/4750/head
John McLear 2021-02-11 17:48:12 +00:00 committed by Richard Hansen
parent 085ab452a0
commit ab127289c4
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ exports.expressCreateServer = (hookName, args, cb) => {
* https://github.com/socketio/socket.io/issues/2276#issuecomment-147184662 (not totally true, actually, see above) * https://github.com/socketio/socket.io/issues/2276#issuecomment-147184662 (not totally true, actually, see above)
*/ */
cookie: false, cookie: false,
maxHttpBufferSize: 10E3,
}); });
io.use((socket, next) => { io.use((socket, next) => {