Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multistream: Dialer deny multiple /multistream/1.0.0 headers (#61)
This PR ensures that the `/multistream/1.0.0` header can only be received once during a protocol negotiation. This is fixed for both the V1 and V1Lazy variations. While at it, have added a few tests to check: - protocol negotiation - protocol negotiation failure due to unsupported protocols - lazy protocol negotiation awaits protocol message before closing (to be fixed by: #60) - low level protocol listener that writes the expected messages - low level protocol listener that submits multiple headers, both for V1 and V1 lazy Closes: #59 cc @paritytech/networking --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
- Loading branch information