-
Notifications
You must be signed in to change notification settings - Fork 21
feature request: Reader/Writer support, ability to split to Reader and Writer (maybe also Full-Duplex) #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Not a proper solution and not full duplex, but the below allow using picoserve with esp-mbedtls as is, in case someone needs to. Not all capabilities there will work, just the simple stuff.
|
@yanshay I am working on such a feature, if you would like to check it: The usage:
The solution is still very premature, I will prepare some proper tests and documentation for it. |
I think, if possible, we should take inspiration from |
I believe my approach is very similar to it already. The "SharedSession" can be both reader and writer at the same time as it is just a mutex wrapper around the actual Session instance. The actual point is to use the ReadReady and WriteReady traits to be able to avoid flushes that can cause deadlocks. |
I think what @AnthonyGrondin points to and I tend to agree is that to use this with the embedded ecosystem, implementing the embassy-net traits is mandatory for this to be usable. |
I'm using picoserve as http server and it seem to require the ability to work with Reader and Writer (sammhicks/picoserve#71).
I saw in #59 reference to full-duplex which probably covers this. I don't think picoserve needs full-duplex, just need separate writer/reader.
Submitting the issue as a reminder. Will look into this myself though probably beyond my understanding of this crate.
The text was updated successfully, but these errors were encountered: