What causes a "stream reset"?

What will cause a stream reset when trying to read from a stream? Is it if the other side closes/reopens the stream?

Currently using go-libp2p and getting this error every so often, wondering what would cause it.

1 Like

I would also like to know the answer to this question. I have been observing lot of stream reset as well and not sure what causes it? Should the sender simply retry when a stream reset happens?

A stream reset is an abrupt interruption of the stream. It usually indicates some unexpected state, or internal error on some side. Do you see these stream resets on a particular protocol? If so, you should debug that protocol.

Also, which libp2p version are you using? And what implementations?