eclipse-zenoh / zenoh

zenoh unifies data in motion, data in-use, data at rest and computations. It carefully blends traditional pub/sub with geo-distributed storages, queries and computations, while retaining a level of time and space efficiency that is well beyond any of the mainstream stacks.
https://zenoh.io
Other
1.36k stars 142 forks source link

Fix interest protocol when client connected to peer #1130

Closed OlivierHecart closed 3 weeks ago

OlivierHecart commented 3 weeks ago

Fixed 2 problems:

  1. When peer was receiving interest from client it was not sending it's known declarations (from other peers).
  2. When peer was receiving interest from client it was sending DeclareFinal back immediately without waiting for the DeclareFinals from the routers it is eventually connected to.

To fix point 2 I had to implement interest bread crumbing. I did so through a code reorganization that would allow liveliness token refactor to also benefit from it.