Skip to content

Commit

Permalink
disable MTU probing if the local MTU is less than UDX_MTU_BASE. also …
Browse files Browse the repository at this point in the history
…makes the assert in mtu_probeify more strict (#242)
  • Loading branch information
jthomas43 authored Jan 16, 2025
1 parent 9ad8c51 commit de408f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/udx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2629,6 +2629,9 @@ udx_stream_connect (udx_stream_t *stream, udx_socket_t *socket, uint32_t remote_

if (mtu == -1 || mtu > UDX_MTU_MAX) {
mtu = UDX_MTU_MAX;
} else if (mtu <= UDX_MTU_BASE) {
debug_printf("mtu: OS-Discovered pMTU to host is less than UDX_MTU_BASE (%u < %u), disabling MTU discovery\n", mtu, UDX_MTU_BASE);
stream->mtu_state = UDX_MTU_STATE_SEARCH_COMPLETE;
}

stream->mtu_max = mtu;
Expand Down

0 comments on commit de408f4

Please sign in to comment.