Skip to content
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

Don't "connect" the UDP socket. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tbartelmess
Copy link

Establishing a "connection" for UDP means that on Linux the underlying socket will deal with ICMP responses about undelivered packages.

The connection gets marked as "closed" by the OS after an "unreachable" ICMP message for the source port arrives.

From what I can tell there is not too much of a performance win for calling connect() except that every packet will have a different source port (at least on 18.04 Bionic Beaver).

Establishing a "connection" for UDP means that on Linux the underlying socket will deal with ICMP responses about undelivered packages.

The connection gets marked as "closed" by the OS after an "unreachable" ICMP message for the source port arrives.

From what I can tell there is not too much of a performance win for calling connect() execpt that every packet will have a different source port (at least on 18.04 Bionic Beaver).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant