You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case which requires sending messages around with very high throughput. With a small number of messages this causes no problems, but as soon as this number exceeds around 200, I start to have consistent OutboundFailure errors. Even if I attempt to keep track of pending messages and attempt resends on OutboundFailure, this doesn't seem to fix the issue. Everything I run is on localhost.
The actual instantiation of the swarm is the following:
And a sample error may look something like this: OutboundFailure: Peer: PeerId("12D3KooWHnHFfSNd9V1egU5hJKbJtAeaNgMmDWDxFkiQcjXyMqER") | RequestId: OutboundRequestId(106) | Error: Io(Custom { kind: ConnectionReset, error: Stopped(0) }).
Even when these errors don't appear, the swarm only seems to be able to process a small number of messages before it pauses, seemingly doing nothing. I've played around with some of the buffer sizes in the swarm config but no luck.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a use case which requires sending messages around with very high throughput. With a small number of messages this causes no problems, but as soon as this number exceeds around 200, I start to have consistent
OutboundFailure
errors. Even if I attempt to keep track of pending messages and attempt resends onOutboundFailure
, this doesn't seem to fix the issue. Everything I run is on localhost.The actual instantiation of the swarm is the following:
And a sample error may look something like this:
OutboundFailure: Peer: PeerId("12D3KooWHnHFfSNd9V1egU5hJKbJtAeaNgMmDWDxFkiQcjXyMqER") | RequestId: OutboundRequestId(106) | Error: Io(Custom { kind: ConnectionReset, error: Stopped(0) })
.Even when these errors don't appear, the swarm only seems to be able to process a small number of messages before it pauses, seemingly doing nothing. I've played around with some of the buffer sizes in the swarm config but no luck.
The repo is unfortunately private, but I've been able to reproduce a similar behavior on a fork of a public repo here: https://github.com/n-lebel/poc-rust-libp2p-kademlia
Any pointers appreciated!
Beta Was this translation helpful? Give feedback.
All reactions