jamesmunns / postcard-rpc

An RPC layer for postcard based protocols
Apache License 2.0
90 stars 21 forks source link

USB target server: How to handle timeouts? #47

Closed jamesmunns closed 3 weeks ago

jamesmunns commented 2 months ago

Currently, there are a couple places that sending can hang:

Users could handle these cases by wrapping all calls to send in timeouts, but this is unsatisfying.

We could pull in embassy-time, but that's another dep we have to manage (and manage versions of).

now_or_never works okay-ish for "host is connected or not", but doesn't work well for sending messages to a full endpoint.

jamesmunns commented 3 weeks ago

Closed by #55 - we now allow 2ms/frame for timeout