-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
synchronously closing one side of the connection breaks libp2p #170
Comments
Note: both mplex and spdy show this behaviour |
@mkg20001 can you add a test that reproduces this? I'm not sure if I understand the issue. Sounds like you are just not catching the errors and they go uncaught. |
@mkg20001 can you convert that into a PR with a test for this module? |
@diasdavid I tried to implement the test case but the error does not seem to occur. Either this is fixed already or it's because both peers are running in the same process. |
This seems to be related to the multiplexer throwing that is being worked on in - https://github.com/libp2p/js-libp2p-mplex/pull/75/files. |
This should not be a problem anymore |
Bumps [@multiformats/mafmt](https://github.com/multiformats/js-mafmt) from 11.1.2 to 12.0.0. - [Release notes](https://github.com/multiformats/js-mafmt/releases) - [Changelog](https://github.com/multiformats/js-mafmt/blob/master/CHANGELOG.md) - [Commits](multiformats/js-mafmt@v11.1.2...v12.0.0) --- updated-dependencies: - dependency-name: "@multiformats/mafmt" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
## [6.0.3](libp2p/js-libp2p-bootstrap@v6.0.2...v6.0.3) (2023-03-20) ### Dependencies * bump @multiformats/mafmt from 11.1.2 to 12.0.0 ([libp2p#170](libp2p/js-libp2p-bootstrap#170)) ([5c15878](libp2p/js-libp2p-bootstrap@5c15878))
Version: libp2p v18
Platform: server:
Linux - 4.4.0-97-generic #120-Ubuntu SMP Tue Sep 19 17:28:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
, client:Linux - 4.13.0-36-generic #40-Ubuntu SMP Fri Feb 16 20:07:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
, node (same on both):v8.9.4
Subsystem: transport, muxer
Type: bug
Severity: high
Description: synchronously closing one side of the connection breaks libp2p
Steps to reproduce the error: https://github.com/mkg20001/libp2p-nodetrust
Install and setup the server and client from the
fix/update
branch at commit 2b34ab0eeacc410840a9daa76a9afa80a8a6ffa8server-log.txt
client-log.txt
The fix is to close one side of the connection asynchronously. This patch fixes it (but this is just a workaround):
I don't know if this is a bug from my module but I think that closing one side of the connection in sync shouldn't close the other. Or the whole muxer connection.
The text was updated successfully, but these errors were encountered: