stream reset but libp2p still tries to open a stream #3079
-
Hi, I see the following sequence of logs on one of my client nodes trying to establish a stream to a remote:
I understand this to mean that:
Now, in general, I like libp2p's willingness to "do what I mean" but in this specific case, the second stream connection attempt is timing out 20 seconds later which is a tad too much: I'd like to make sure the application layer knows about this failure and does something about it quickly. More generally, here, I am surprised that libp2p is doing this silent attempt to open the stream a second time. If I understood what is going on here, is there a way to disable that behavior ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Could you provide an example of how you are doing this? |
Beta Was this translation helpful? Give feedback.
-
If I'm reading your logs correctly, I think this error is happening while handling a new stream opened from the remote peer, not while you are trying to open a new stream. The log line of That said, I'm not sure why you are timing out. Are these streams opened only on the relayed (and limited) connection? If so, do you have |
Beta Was this translation helpful? Give feedback.
@MarcoPolo FYI, after debugging this further, it turns out that the bug was on the remote side: the client did successfully establish a connection and a stream to the remote, it sent its data there, and remote received it and started to process it and then... it took forever to process the data which is why my client-side timeouts triggered.
Thank you for taking time to help me.