Twitter | Pretraživanje | |
Mike Zeller
Decided to write a basic TCP proxy using and this weekend as an excuse to play with async/.await. Here’s the link so people can send me some feedback on how to make it better!
Async TCP Proxy written in rust. Contribute to papertigers/proxy-rs development by creating an account on GitHub.
GitHub GitHub @github
Reply Retweet Označi sa "sviđa mi se" More
Daniel Carosone ⬡ 🇸🇪 🇮🇹 🇦🇺 22. sij
Odgovor korisniku/ci @papertigerss @asyncrs
First impression: very nice and simple at the top level. I suspect there is a way to avoid all the byte copying using streams - but maybe not just yet?
Reply Retweet Označi sa "sviđa mi se"
Florian Gilcher ∠(・.-)―〉 →◎ 22. sij
Odgovor korisniku/ci @redtwitdown @papertigerss @asyncrs
As far as I understood, most of the copying happens because it wants to count the traffic. You could maybe find a stream abstraction for that, but I'm not sure if that's worth the effort.
Reply Retweet Označi sa "sviđa mi se"
Mike Khirallah 22. sij
Odgovor korisniku/ci @papertigerss @asyncrs
Really clean! I especially like the simplicity of your async fn pipe. When I was building an ext. for async bufreader in I felt like there was still a lot of friction extending functionality using futures/async. Maybe mine was just a uniq case
Reply Retweet Označi sa "sviđa mi se"