File: node-ads-120.diff

package info (click to toggle)
node-ws 1.1.0%2Bds1.e6ddaae4-3%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 824 kB
  • sloc: cpp: 220; sh: 93; makefile: 91
file content (19 lines) | stat: -rw-r--r-- 718 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fix upload default size to a sane value
Author: Arnout Kazemier <https://github.com/3rd-Eden>
Origin: upstream, https://github.com/websockets/ws/commit/0328a8f49f004f98d2913016214e93b2fc2713bc
Bug: https://www.npmjs.com/advisories/120
Bug-Debian: https://bugs.debian.org/927671
Reviewed-By: Xavier Guimard <yadd@debian.org>
Last-Update: 2019-04-21

--- a/lib/WebSocketServer.js
+++ b/lib/WebSocketServer.js
@@ -37,7 +37,7 @@
     disableHixie: false,
     clientTracking: true,
     perMessageDeflate: true,
-    maxPayload: null
+    maxPayload: 100 * 1024 * 1024
   }).merge(options);
 
   if (!options.isDefinedAndNonNull('port') && !options.isDefinedAndNonNull('server') && !options.value.noServer) {