Skip to content

Commit de408f4

Browse files
authored
disable MTU probing if the local MTU is less than UDX_MTU_BASE. also makes the assert in mtu_probeify more strict (#242)
1 parent 9ad8c51 commit de408f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/udx.c

+3
Original file line numberDiff line numberDiff line change
@@ -2629,6 +2629,9 @@ udx_stream_connect (udx_stream_t *stream, udx_socket_t *socket, uint32_t remote_
26292629

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

26342637
stream->mtu_max = mtu;

0 commit comments

Comments
 (0)