Skip to content

Commit

Permalink
fix(server): set maxHttpBufferSize to the socket.io v2 default (#3626)
Browse files Browse the repository at this point in the history
Fixes #3621
  • Loading branch information
johnjbarton authored Jan 20, 2021
1 parent 25d9abb commit 69baddc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ function createSocketIoServer (webServer, executor, config) {
transports: config.transports,
forceJSONP: config.forceJSONP,
// Default is 5000 in socket.io v2.x and v3.x.
pingTimeout: config.pingTimeout || 5000
pingTimeout: config.pingTimeout || 5000,
// Default in v2 is 1e8 and coverage results can fail at 1e6
maxHttpBufferSize: 1e8
})

// hack to overcome circular dependency
Expand Down

0 comments on commit 69baddc

Please sign in to comment.