Closed freakinyy closed 1 year ago
@driftluo Did you encounter the same issue?
Just read the comments in the https://github.com/fatedier/frp/issues/2987 , your solution should be correct.
Maybe you could try to make the stream window size much higher (to get 1000Mbps brandwidth) and make a PR.
OK, I'll have a try.
@driftluo Did you encounter the same issue?
yes, the default configuration bandwidth of yamux is very low, it is recommended that users adjust it according to their own situation
According to past practice, yamux protocol has 70~80% performance loss than raw tcp when use default config(rtt 150ms). loss of GRPC(h2 mux) is 50% +-. I do lot of work on this, but it dosen't work very well. 😢
QUIC is the silver bullet
https://github.com/shadowsocks/qtun
You may want this plugin.
I set shadowsocks-rust with yamux-plugin between my local pc and remote server, but the bandwidth (600-700KB/s) is much lower than without yamux-plugin. Follow is my plugin options and mode:
But if I set shadowsocks-rust with yamux-plugin between local PC and local router (low latency), it seems that the bandwidth is much higher. I searched and found this: https://github.com/fatedier/frp/issues/2987
So I tied to change the
Config::default()
when callingSession::new_client
andSession::new_server
inyumux-plugin-local.rs
andyumux-plugin-server.rs
toThe bandwidth between my local PC and remote server is much higher now (2MB/s). I am new to Rust and not good at networking, so I'm not sure if my trying is correct. So could you please test this?