Open Dirbaio opened 1 year ago
I mean it explicitly mentions, that this panics under the condition, which you described. However, introducing a check and returning a Result might be more ideal, than just panicking.
Agree about handling this gracefully
DNS_MAX_SERVER_COUNT
, panic here https://github.com/smoltcp-rs/smoltcp/blob/main/src/socket/dns.rs#L1706
here https://github.com/embassy-rs/embassy/blob/a1fce1b554bea8cad7f87073748145aaeca634f8/embassy-net/src/lib.rs#L699we should truncate instead of panic.
temp workarond: add this feature to smoltcp.