project-chip / rs-matter

Rust implementation of the Matter protocol. Status: Experimental
Apache License 2.0
303 stars 43 forks source link

Do not stop rs-matter on send errors #184

Closed ivmarkov closed 1 month ago

ivmarkov commented 1 month ago

This one-liner makes sure that rs-matter continues to operate even if a remote peer is no longer reachable on its known network address.

There's a TODO in there in that we should actually return the failure error to the code that prepared the send packet in the first place (i.e. in the TX mutex), so that it can handle the error however it sees fit (do an mDNS lookup and then re-send, or give up sending etc.)

However, I suggest we address the TODO once we have mDNS lookups in place.