-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
x/net/ipv4: calling SetTOS doesn't work on Windows #42728
Comments
With the following versions, the issue does not seem to reproduce. Maybe
|
I tried with version |
@levesquejf Which Windows version are you seeing the problem? Note that according to this Windows doc, not all Windows support setting the IP_TOS option. Windows 10 does. |
@shushen I am testing on Windows 10 version 1909 (Build 18363.1198) so it should be supported according to the doc. |
According to the Windows Documentation, Do not use. Type of Service (TOS) settings should only be set using the Quality of Service API. See Differentiated Services in the Quality of Service section of the Platform SDK for more information. I am not the only one having issues with ToS and Windows. Some people suggest to change windows registries ( The Windows Advanced QoS DSCP Marking Override Settings is set to the default ( Anyone has experience with the Windows Quality of Service API or has any idea how to make this work? |
Anyone with Windows Advanced QoS API can help troubleshoot this ongoing issue? |
Related documentation https://learn.microsoft.com/en-us/previous-versions/windows/desktop/dd874008(v=vs.85) |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I try to use the
ipv4.Conn.SetTOS()
function on Windows. It works well on Mac OS but it silently fail on Windows (no error and no TOS marking). Should it work on Windows? No bugs about it listed on https://godoc.org/golang.org/x/net/ipv4#pkg-note-bug.To reproduce:
What did you expect to see?
Outbound packet with the ToS field set to 184 (0xb8, DSCP EF).
What did you see instead?
ToS is 0x0 on Windows. It is 0xb8 on MacOS.
The text was updated successfully, but these errors were encountered: