Closed relufi closed 2 years ago
Coincidentally, we discussed precisely this issue with another user on the forum.
What we need to do is patch the socket2
crate (note that it is forked and partially patched already), and remove (for ESP-IDF only, i.e. #[cfg(not(target_os = "esp-idf"))]
) ALL settings of the *CLOEXEC
flags on the socket file descriptors, because this flag is not supported by ESP-IDF / LwIP and causes your failure.
Are you up for that?
This should be fixed now. You might need to remove your socket2
checkout from ~/.cargo
as the fix was force-pushed.
Please reopen if it still does not work for you.
I encountered an exception while running the following code
Err(Os { code: 88, kind: Unsupported, message: "Function not implemented" })
The error is here https://github.com/esp-rs-compat/socket2/blob/9cdd55ac7abc59aa6613a1302eb3d8bcdbe56ab7/src/socket.rs#L707