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

communicator #103

Closed
wants to merge 1 commit into from
Closed

communicator #103

wants to merge 1 commit into from

Conversation

abushev
Copy link
Collaborator

@abushev abushev commented Jul 27, 2024

No description provided.

@abushev abushev requested a review from cxx24 July 27, 2024 20:28
@@ -192,6 +193,17 @@ class sender : ConnectionPolicy
[](const boost::system::error_code&, std::size_t) {
});
}

void send_async(data_segments_vector const & data) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UDP datagram should not be larger than the MTU (1500 bytes), ASIO wouldn't care and return EMSGSIZE I think.

man 7 udp

       By default, Linux UDP does path MTU (Maximum Transmission Unit)  discovery.
       This  means  the  kernel will keep track of the MTU to a specific target IP
       address and return EMSGSIZE when a UDP packet write exceeds it.  When  this
       happens, the application should decrease the packet size.  Path MTU discov-
       ery can be also turned off using the IP_MTU_DISCOVER socket option  or  the
       /proc/sys/net/ipv4/ip_no_pmtu_disc  file;  see  ip(7)  for  details.   When
       turned off, UDP will fragment outgoing UDP packets that exceed  the  inter-
       face MTU.  However, disabling it is not recommended for performance and re-
       liability reasons.

@abushev abushev closed this Aug 24, 2024
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.

2 participants