JoystreamClassic / extension-cpp

C++ libtorrent extension library
MIT License
0 stars 3 forks source link

Do not disconnect peers with incompatible protocol version #49

Open mnaamani opened 6 years ago

mnaamani commented 6 years ago

We are currently disconnecting a peer if the major versions of the protocol are different.

Its not clear that we cannot hold a connection open for normal bittorrent/DHT traffic. It could also be useful for the extension user to understand how often and what peers are using incompatible protocol version.

To this end, one could introduce a new enum value in BEPSupportStatus which reflects an incompatible version explicitly.