eclipse-zenoh / zenoh-pico

Eclipse zenoh for pico devices
Other
102 stars 65 forks source link

[Bug] Discrepancy with Zenoh Rust on batch_size/mtu #512

Closed jean-roland closed 1 week ago

jean-roland commented 1 week ago

Describe the bug

With https://github.com/eclipse-zenoh/zenoh/pull/1214, now pico fragmentation fails because the router considers the batch_size is wrong.

RX task failed: Read error from link: tcp/[::ffff:127.0.0.1]:7447 => tcp/[::ffff:127.0.0.1]:47088:BatchConfig { mtu: 1024, is_streamed: true, is_compression: false }. Invalid batch length or buffer size. at io/zenoh-transport/src/unicast/link.rs:227

The way pico sets the batch_size probably needs to be updated.

To reproduce

Start the z_test_fragmentation_tx, the router will close the connection.

System info

NA