Closed bakhshandeh closed 1 year ago
Please see LIMITS.md - protocol handlers default to 32 inbound streams.
You can increase this limit when you register your handler:
// echo protocol
await listenerNode.handle("/echo/1.0.0", async ({ stream }) => {
await pipe(stream.source, stream.sink);
stream.close();
}, {
maxInboundStreams: 100,
maxOutboundStreams: 100
);
This happens when number of parallel pipes is more than 30.
Sample code to reproduce the issue: