You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to run try_clone() on a TcpStream results in the following error.
Os { code: 88, kind: Unsupported, message: "Function not implemented" }
In my use case, this makes it impossible to use Apache Thrift on my ESP32. Is it more of an issue with the Rust ESP toolchain not supporting cloning TCP streams, or with Apache Thrift not supporting platforms which don’t support it?
Sorry for reacting so late. try_clone is unlikely to be implemented anytime soon, as there's a missing functionality in ESP-IDF itself: it does not support the Posix dup syscall. In other words, it cannot "duplicate" a file/socket handle. This also means we cannot support try_clone, as after try_clone you should end up with two separate TCP streams which have their own lifetime, but for that, we absolutely need dup. :)
Attempting to run
try_clone()
on a TcpStream results in the following error.In my use case, this makes it impossible to use Apache Thrift on my ESP32. Is it more of an issue with the Rust ESP toolchain not supporting cloning TCP streams, or with Apache Thrift not supporting platforms which don’t support it?
Here is a minimal reproducible example: https://github.com/victorbnl/esp-rs-tcpstream-clone-88
The text was updated successfully, but these errors were encountered: