increase buffer size
This commit is contained in:
parent
991990a3d4
commit
343cd709fb
1 changed files with 2 additions and 3 deletions
|
@ -37,7 +37,7 @@ const io = socketIO(server, {
|
||||||
res.writeHead(200, headers);
|
res.writeHead(200, headers);
|
||||||
res.end();
|
res.end();
|
||||||
},
|
},
|
||||||
maxHttpBufferSize: 2e6,
|
maxHttpBufferSize: 10e6,
|
||||||
pingTimeout: 10000
|
pingTimeout: 10000
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -98,8 +98,7 @@ io.on('connection', socket => {
|
||||||
socket.on('disconnect', (reason, details) => {
|
socket.on('disconnect', (reason, details) => {
|
||||||
serverDebug(
|
serverDebug(
|
||||||
`${socket.id} was disconnected from url ${socket.conn.request.url} for the following reason: ${reason}
|
`${socket.id} was disconnected from url ${socket.conn.request.url} for the following reason: ${reason}
|
||||||
${details?.message}
|
${JSON.stringify(details)}`
|
||||||
${details?.description}`
|
|
||||||
);
|
);
|
||||||
socket.removeAllListeners();
|
socket.removeAllListeners();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue