Closed niconorsk closed 7 months ago
Hi there,
The -tcp-sndbuf
argument is used to set the send buffer size of the internal/userspace gVisor TCP/IP stack, and it doesn't affect the Linux kernel setting. That's why there is no output on the strace.
But apparently there is a bug on this line:
And you are welcome to submit a PR to fix it. :-P
Verify steps
Version
2.5.1
What OS are you seeing the problem on?
No response
Description
When starting tun2socks with the -tcp-sndbuf argument, this does not actually appear to work. The command runs fine but if I look at the strace output the SO_SNDBUF getsockopt option is never called.
I've done a dive in the source code and have found one bug in
core/tcp.go
however even with this fix, it still does not actually seem to change the senb buffer sizeI'm happy to test any other suggested fixes but further understanding is a bit beyond me
CLI or Config
No response
Logs
No response
How to Reproduce
No response