Replies: 1 comment 1 reply
-
👋 sorry for the late reply. I am guessing that you are hitting the Lines 1692 to 1704 in 7c85f92 For the sake of debugging only, would you mind setting that number to
In case this is indeed your issue, i.e. In case my guess is wrong, would you mind providing more logs, a pointer to the code that you are using? |
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.
-
Hey,
I'm trying to implement a file syncing protocol with the request-response behavior. The file is split into chunks (of size 100kb-1Mb) and each chunk is fetched with an RPC. Similar to the file-sharing example I have a client that sends fetch chunk requests to the swarm. The number of concurrent requests is limited with a semaphore to 50 per peer. Now the issue is that when doing the fetching I see some spontaneous disconnects: On the side that fetches the chunk I get a timeout error:
Some(Handler(Right(Timeout)))
(which is the request-response handler)and on the other side, presumably the consequence:
Connection closed to peer QmeJaswmFURBu7wexRcYuvXgp3JLqNqRXP8L1eroSHaNR8. Connections left 1. Cause: Some(IO(Custom { kind: Other, error: YamuxError(Closed) }))"
From reading the libp2p code it seems to me that the stream negotiation for the request-response times out but I find this a little surprising since I would assume 10s is enough.
Things I tried:
Is there anything I can do here besides reducing the number of requests?
I use yamux with a TCP transport.
Beta Was this translation helpful? Give feedback.
All reactions