Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Default UDP transport makes Contact header constructed incorrectly for TCP transport #23
Why in RA, there is "udp" transport added by default?
If one chooses to use only TCP transport, then UDP transport still will be present anyway in transports. After RA initialization transports contains ('UDP','TCP') and two listening points will be created (for TCP and UDP).
This brings an issue when retrieving listening point:
Since map doesn't have an order defined, then getting one random entry from the map makes Contact header contain sometimes UDP instead of desired TCP.
listeningPoints will have UDP, TCP transports. and getListeningPoint() will return most likely UDP (most likely, since it depends per map behaviour, in my case it is always UDP).
For me it looks like a bug.