Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

feat: muxed stream close read and write #90

Closed
wants to merge 1 commit into from

Conversation

vasco-santos
Copy link
Member

@vasco-santos vasco-santos commented Apr 19, 2021

__ Created new PR with changes from #67 on top of current master branch __

This adds tests for closeRead and closeWrite on the muxer streams.

Also:

  • Removed libp2p-tcp in favor of it-pair to avoid circular deps
  • Connection.close() will now close its internal streams to avoid lingering streams.

BREAKING CHANGE: This adds closeWrite and closeRead checks in the tests, which will cause test failures for muxers that dont implement those.

Closes #67

BREAKING CHANGE: This adds closeWrite and closeRead checks in the tests, which will cause test failures for muxers that dont implement those.
achingbrain added a commit that referenced this pull request May 19, 2022
This adds tests for closeRead and closeWrite on the muxer streams.

Also:

- Removed libp2p-tcp in favor of it-pair to avoid circular deps
- Connection.close() will now close its internal streams to avoid lingering streams.

Supersedes #90

BREAKING CHANGE: This adds closeWrite and closeRead checks in the tests, which will cause test failures for muxers that don't implement those
@achingbrain
Copy link
Member

Superseded by #214

@achingbrain achingbrain deleted the feat/muxed-stream-close-read-and-write branch May 19, 2022 09:30
achingbrain added a commit that referenced this pull request May 20, 2022
This adds tests for closeRead and closeWrite on the muxer streams.

Also:

- Connection.close() will now close its internal streams to avoid lingering streams.

Supersedes #90

BREAKING CHANGE: This adds closeWrite and closeRead checks in the tests, which will cause test failures for muxers that don't implement those
github-actions bot pushed a commit that referenced this pull request May 20, 2022
## [@libp2p/interfaces-v2.0.0](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interfaces-v1.3.32...@libp2p/interfaces-v2.0.0) (2022-05-20)

### ⚠ BREAKING CHANGES

* This adds closeWrite and closeRead checks in the tests, which will cause test failures for muxers that don't implement those

### Bug Fixes

* close streams when connection is closed ([#214](#214)) ([88fcd58](88fcd58)), closes [#90](#90)
github-actions bot pushed a commit that referenced this pull request May 20, 2022
## [@libp2p/interface-compliance-tests-v2.0.0](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-compliance-tests-v1.1.34...@libp2p/interface-compliance-tests-v2.0.0) (2022-05-20)

### ⚠ BREAKING CHANGES

* This adds closeWrite and closeRead checks in the tests, which will cause test failures for muxers that don't implement those

### Bug Fixes

* close streams when connection is closed ([#214](#214)) ([88fcd58](88fcd58)), closes [#90](#90)
* update interfaces ([#215](#215)) ([72e6890](72e6890))
github-actions bot pushed a commit that referenced this pull request May 20, 2022
## [@libp2p/connection-v2.0.0](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/connection-v1.1.5...@libp2p/connection-v2.0.0) (2022-05-20)

### ⚠ BREAKING CHANGES

* This adds closeWrite and closeRead checks in the tests, which will cause test failures for muxers that don't implement those

### Bug Fixes

* close streams when connection is closed ([#214](#214)) ([88fcd58](88fcd58)), closes [#90](#90)
* update interfaces ([#215](#215)) ([72e6890](72e6890))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants