Skip to content

How does linkerd read/write data? #7952

Answered by olix0r
fz197 asked this question in Q&A
Discussion options

You must be logged in to vote

For TCP forwarding, most of that will go through linkerd_duplex::HalfDuplex::poll_buffer (which calls into tokio_util::io::poll_read_buf, and so on).

For HTTP proxying, most of that will be managed by hyper and h2. I'd have to do a little digging to nail down the exact read calls there, but they'll boil down to a AsyncRead::poll_read on tokio::net::TcpStream.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fz197
Comment options

Answer selected by hawkw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants