How to handle High latency networks with go-libp2p? #2731
Replies: 1 comment 6 replies
-
|
What's the RTT latency? There are a lot of hardcoded timeout assumptions right now. And some protocol negotiations take multiple round trips, so that could cause a high RTT to get multiplied and hit the timeout. The "failed to negotiate security protocol" likely means you timed out when doing the Noise or TLS handshake. If you set
For most people this is a feature. Using large timeouts opens you up to Slowloris style attacks.
Maybe. There's a What's your use case here? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am trying to use go libp2p to connect with other nodes in a network that has more than 3 seconds latency. I am using open WRT with Traffic Control to add latency.
However, I get the following error:
E * [/ip4/192.168.4.2/tcp/4001] failed to negotiate security protocol: context deadline exceededI have tried some of the following:
In some cases I will just get
all dials failedanddial back offerrors. Also sometimes I getall dials failed i/o timeout.Is this a bug, a feature by design or am I missing something?
Is there an
optionthat can help p2p network play with high latency?Beta Was this translation helpful? Give feedback.
All reactions