nervosnetwork / tentacle

A multiplexed p2p network framework that supports custom protocols
https://docs.rs/tentacle
MIT License
54 stars 24 forks source link

feat: Add compress mod #154

Closed driftluo closed 5 years ago

driftluo commented 5 years ago

This should be the last feature update before the 0.2 release.

But, unfortunately, this is a huge change that will lead to a break in communication.

In all previous versions, communication was almost version compatible, but after this PR, communication would be incompatible.

The previous version did not consider the version of the p2p framework layer. The appearance of this PR made me realize that the p2p framework should also have a communication-compatible version number and communication header.

This PR is in progress, good luck for you

driftluo commented 5 years ago

After a series of discussions, we decided that the task of message compression was handed over to the user layer, and the framework did not need to perceive whether the event occurred.

This is good news, meaning that the framework does not have a possible break change.

Just close it