-
I have a setup composed of 2 peers running on browsers and a relay server, the browsers configuration is similar to the file sharing example. I'm trying to request a value from one of the browser peers to the other browser peer through a relayed connection, the request is received correctly but the response is not received, I'm getting an eof error that seems to be originated when trying to read the response length here https://github.com/libp2p/rust-libp2p/blob/master/core/src/upgrade/transfer.rs#L69 This is the sequence of actions (all based on the file sharing example above):
and this is how the logs look like on browser peer 2:
Complete logs of the 3 nodes are attached. So my question, is it possible to use the request-response behaviour in this scenario? If not, is there any other existing behaviour that could be used, or would it be possible to develop one? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Sorry for the noise, there was a problem with the test, the response sender was being closed too soon and the stream was suddenly closed, all is working ok 👍 |
Beta Was this translation helpful? Give feedback.
-
Hi @fgimenez I’m trying the same thing as you had done. File-sharing in browser using relay. But I’m struggling to make the relayed connection not closed immediately after being established. |
Beta Was this translation helpful? Give feedback.
Sorry for the noise, there was a problem with the test, the response sender was being closed too soon and the stream was suddenly closed, all is working ok 👍