Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: close stream after sending identify (#1424)
Close the stream after we finish writing the identify message. This is behavior is specified https://github.com/libp2p/specs/blob/master/identify/README.md#identify > The peer being identified responds by returning an Identify message and closes the stream. This shows up when interacting with a go-libp2p node as go-libp2p waits for the stream to close before finishing reading the messages: https://github.com/libp2p/go-libp2p/blob/master/p2p/protocol/identify/id.go#L455.
- Loading branch information