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

Remove the multiplexed networking system #2373

Merged
merged 4 commits into from
Apr 25, 2019

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Apr 25, 2019

cc #1692
"Reverts" #1517

#1517 added a new network system based on opening one new substream for each request, but kept the old networking code on the side for backwards compatibility. This was IMO a step in the right direction. However since it isn't properly tested, this new system wasn't enabled by default.
This pull request removes this system and renames "backwards compatibility mode" into "normal mode".

This PR doesn't fix any issue and doesn't change anything on the wire, but has the objective of greatly simplifying the code.
I intend to open another PR on top of this.

@tomaka tomaka added the A0-please_review Pull request needs code review. label Apr 25, 2019
@bkchr bkchr added A7-looksgoodtestsfail and removed A0-please_review Pull request needs code review. labels Apr 25, 2019
@bkchr bkchr merged commit 9172ffa into paritytech:master Apr 25, 2019
@tomaka tomaka deleted the remove-new-networking branch April 25, 2019 09:43
tomaka added a commit to tomaka/polkadot that referenced this pull request May 6, 2019
* Remove the multiplexed networking system

* Rename BackCompat to Normal

* Remove CustomMessageId

* Fix tests
gavofyork pushed a commit that referenced this pull request May 6, 2019
* ProtocolId can now be more than 3 bytes (#2350)

* Update to libp2p v0.7.0 (#2343)

* Update to libp2p master

* Fix tests

* More tests fixing

* Remove the multiplexed networking system (#2373)

* Remove the multiplexed networking system

* Rename BackCompat to Normal

* Remove CustomMessageId

* Fix tests

* Allow multiple substreams (#2379)

* Allow multiple substreams

* Update core/network-libp2p/src/custom_proto/handler.rs

Co-Authored-By: tomaka <pierre.krieger1708@gmail.com>

* Fix #2403 (#2404)

* Fix #2403

* Apply suggestions from code review

Co-Authored-By: tomaka <pierre.krieger1708@gmail.com>

* Split Context::send_message into multiple methods (#2409)

* Split Context::send_message into multiple methods

* Apply suggestions from code review

Co-Authored-By: tomaka <pierre.krieger1708@gmail.com>

* Add reason for closing and fix multiple substreams (#2437)

* Simplify the code of connection_keep_alive (#2438)

* Drop connections when the handler gets disabled (#2439)

* Drop connections when the handler gets disabled

* Add test

* Disable mDNS when passing --dev (#2467)

* Show more information when too many addresses are reported (#2473)

* Show more information when too many addresses are reported

* Update core/network-libp2p/src/behaviour.rs

Co-Authored-By: tomaka <pierre.krieger1708@gmail.com>
gavofyork pushed a commit that referenced this pull request May 6, 2019
* ProtocolId can now be more than 3 bytes (#2350)

* Update to libp2p v0.7.0 (#2343)

* Update to libp2p master

* Fix tests

* More tests fixing

* Remove the multiplexed networking system (#2373)

* Remove the multiplexed networking system

* Rename BackCompat to Normal

* Remove CustomMessageId

* Fix tests

* Allow multiple substreams (#2379)

* Allow multiple substreams

* Update core/network-libp2p/src/custom_proto/handler.rs

Co-Authored-By: tomaka <pierre.krieger1708@gmail.com>

* Fix #2403 (#2404)

* Fix #2403

* Apply suggestions from code review

Co-Authored-By: tomaka <pierre.krieger1708@gmail.com>

* Split Context::send_message into multiple methods (#2409)

* Split Context::send_message into multiple methods

* Apply suggestions from code review

Co-Authored-By: tomaka <pierre.krieger1708@gmail.com>

* Add reason for closing and fix multiple substreams (#2437)

* Simplify the code of connection_keep_alive (#2438)

* Drop connections when the handler gets disabled (#2439)

* Drop connections when the handler gets disabled

* Add test

* Disable mDNS when passing --dev (#2467)

* Show more information when too many addresses are reported (#2473)

* Show more information when too many addresses are reported

* Update core/network-libp2p/src/behaviour.rs

Co-Authored-By: tomaka <pierre.krieger1708@gmail.com>

* Silence some errors
MTDK1 pushed a commit to bdevux/substrate that referenced this pull request Jul 10, 2019
* Remove the multiplexed networking system

* Rename BackCompat to Normal

* Remove CustomMessageId

* Fix tests
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.

2 participants