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.37k stars 141 forks source link

[dev/1.0.0] Zero capacity handlers are not handled properly #1230

Closed YuanYuYuan closed 1 week ago

YuanYuYuan commented 2 weeks ago

Describe the bug

Users may attempt to create a handler for a zero-capacity channel. For example, we support this function in zenoh-c v0.11.0. https://github.com/ZettaScaleLabs/zenoh-c/blob/a98d700e994598fe3d26f47c417d397b66902ead/src/closures/response_channel.rs?plain=1#L52.

To reproduce

Skip

System info