-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
tcpNoDelay
选项无效
#4227
Labels
bug
Something isn't working
Comments
有点道理 回头改成默认true填false显式禁用吧 |
我们不要搞默认值为 true 的吧,可以把 tcpNoDelay 删掉,由 customSockopt 禁用 |
今天我还要改下 XMUX,然后发个真 · 24 最后一版 |
我还以为按照以前的命名规则要noTcpNoDelay呢() |
这个 PR 引入的无意义选项,无人用,@Fangliding 你开个 PR 删一下它吧 |
总之 Xray 遵循 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在Xray-core中,
tcpNoDelay
选项用于启用/禁用TCP_NODELAY
。而在代码中,只写了启用TCP_NODELAY
的逻辑。Xray-core/transport/internet/sockopt_linux.go
Lines 106 to 110 in 93f72db
根据Go的代码,
TCP_NODELAY
默认是启用的。https://github.com/golang/go/blob/194de8fbfaf4c3ed54e1a3c1b14fc67a830b8d95/src/net/tcpsock.go#L289-L290
因此,用户无法通过
tcpNoDelay
禁用TCP_NODELAY
。但仍然可以通过customSockopt
禁用希望开发者可以修复这个问题(以及文档)。
The text was updated successfully, but these errors were encountered: