59 karma · joined November 15, 2022
Basically when you got a single communication channel and it's expensive to create more channels to tunnel multiple TCP streams where each connection get's its on channel, this is when you reach for the muxer.
i.e. here I probably could make it without yamux if instead I used SSH control port(socket? master?) and created many shell IO streams. but using yamux makes it cleaner. Also the server I'm working on is very buggy and you really get like 50% success rate logging in.
I suggest you download this `yamux` utility and play around with it really :)
good thing I needed HTTP access or else i had to find that socks5 server that's actually working again.
>You should exert care when using this library. Several of its functions violate basic assumptions about Lua code (e.g., that variables local to a function cannot be accessed from outside; that userdata metatables cannot be changed by Lua code; that Lua programs do not crash) and therefore can compromise otherwise secure code (from the manual)
kinda creeps me out.
Is this library offering a lua implementation more well-designed for this use-case? I got all this code to unload the coroutine stack to store and and reload it before continuing it later. Does having C bindings to this library makes sense?
But, I don't give up. I pitch my bosses research trails all of the time. 90% they don't hit the mark, mostly because I don't try to conform to the whatever roadmap the product team has laid out. But once in a while my ambition and their plan converge, and this is when I get to play out the really cool stuff I do at my job.