Skip to content

Conversation

@penhauer
Copy link

This part is the tricky part for supporting ECN. If the underlying socket is a UDPConn, ReadMsgUDP(buf, oob) is used which returns out of band data like ToS. It works fine for now, but I honestly haven't thought about the cases where the conn is not a pure socket, but a class that implements net.PacketConn (like a Proxy or a Wrapper), and in this case we don't want to bypass the Wrapper's methods. However, for now, I think this is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants