-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix timeout issues #25
Conversation
After this commit 8f232ce , it seems fixed. but it is in timeout situation, not a good solution. |
Placing the flags in a line before affects my readability. We can put them on the same line if you don't mind. let flags = tcp_flags::RST | tcp_flags::ACK;
pkt_sender.send(stream.create_rev_packet(flags, TTL, None, Vec::new())?) I cannot reproduce the timeout issue, and working with tun2socks entails some complexities for me. Is it possible to describe the issue using an example or a proof of concept (PoC)? |
I think this can significantly reduce the number of lines of code, otherwise readability will be reduced for me.
testing steps for me:
cargo install rperf --git=https://github.com/ssrlive/rperf.git --branch=nat
rperf -s &
cargo install socks5-impl --example s5-server
s5-server -l 0.0.0.0:1080 &
cargo install tun2proxy
sudo ~/.cargo/bin/tun2proxy -p socks5://vps2_addr:1080 -s -b vps2_addr -v trace
cargo install rperf --git=https://github.com/ssrlive/rperf.git --branch=nat
rperf -c vps1_addr -u -r Watch the output of |
now, it looks the issue fixed indeed. |
Please publish a new version. |
No description provided.