Skip to content

Commit

Permalink
ARSN-347 socket.io client is disconnected when sending a big payload
Browse files Browse the repository at this point in the history
The file backend test fails when migrating the socket.io client from version 2.x to 4.x due to a change in the default value of maxHttpBufferSize. In the newer version, the default value has been reduced from 100MB to 1MB, causing the failure when attempting to initiate, put parts, and complete an MPU (Multipart Upload) with 10,000 parts.
  • Loading branch information
nicolas2bert committed Jun 8, 2023
1 parent af3fd17 commit 1e66518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/network/rpc/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ export function RPCServer(params: {
assert(params.logger);

const httpServer = http.createServer();
const server = new IOServer(httpServer);
const server = new IOServer(httpServer, { maxHttpBufferSize: 1e8 });
const log = params.logger;

/**
Expand Down

0 comments on commit 1e66518

Please sign in to comment.