tunlrs / mono

Server for Tunlrs service.
MIT License
2 stars 0 forks source link

Duplexify #16

Open sosweetham opened 1 week ago

sosweetham commented 1 week ago

PS: still need to fix the read server response functionality - currently after forwarding from client to server, the function blocks until the client connection is de-established(i.e, Ctrl+C on the client netcat window..) - this will have to be fixed. Perhaps something like an async move () can work here? from #15

Serpent03 commented 1 week ago

Back on my PC, will see if I can push a fix by weekend

Serpent03 commented 1 week ago

Holy shit I think I understand it LOL

https://github.com/tunlrs/mono/blob/main/packages/tunlrs-core/src/tunnel/tunnelconnection.rs#L149

This blocking issue might be because I am not closing an empty TCP pipe between tunnel and server - which is why it keeps waiting until it gets some data. I'll fix this in a bit