Skip to content

Properly Propagate Protocol Problems (tcp::Error -> embeded_io::Error) #1801

@avlec

Description

@avlec

Currently there's no error translation for converting from embassy_net::tcp::Error to embedded_io::Error.
It is rather concerning to get a "Other" as an Error value instead of useful information that you have to get by breaking at the conversion spot in tcp.rs

impl embedded_io_async::Error for ConnectError {

I was seeing the embedded_io Other error when under the hood the actual error was ConnectionReset, which the function above converts to Other which loses all meaning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions