Skip to content

Commit 69baddc

Browse files
authoredJan 20, 2021
fix(server): set maxHttpBufferSize to the socket.io v2 default (#3626)
Fixes #3621
1 parent 25d9abb commit 69baddc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎lib/server.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ function createSocketIoServer (webServer, executor, config) {
4343
transports: config.transports,
4444
forceJSONP: config.forceJSONP,
4545
// Default is 5000 in socket.io v2.x and v3.x.
46-
pingTimeout: config.pingTimeout || 5000
46+
pingTimeout: config.pingTimeout || 5000,
47+
// Default in v2 is 1e8 and coverage results can fail at 1e6
48+
maxHttpBufferSize: 1e8
4749
})
4850

4951
// hack to overcome circular dependency

0 commit comments

Comments
 (0)
Please sign in to comment.