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
I am relatively new to using the Hyper library and have encountered some confusion while examining its source code. Specifically, I am uncertain about the timing of when data is actually written to the socket. Could you please provide some insight into what I might be misunderstanding?
Thank you.
Here is my understanding:
The hyper version: 1.3.1.
For now, I know all the core logic are located in src/proto/h1/dispatch.rs:163 below:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello.
I am relatively new to using the Hyper library and have encountered some confusion while examining its source code. Specifically, I am uncertain about the timing of when data is actually written to the socket. Could you please provide some insight into what I might be misunderstanding?
Thank you.
Here is my understanding:
For now, I know all the core logic are located in src/proto/h1/dispatch.rs:163 below:
The poll_flush is responsible for flushing the data into the socket, and its inner implementation is here:
It calls poll_write to write the data into socket, but I can't find an implementation for it in RustRover with real logic. For example:
All the implementations are same that just call
tokio::io::AsyncWrite::poll_write(【translate into Pin】, cx, buf)
expect these implementations:But for other implementations, what is the real implementation?
Thanks very much!
Beta Was this translation helpful? Give feedback.
All reactions