Skip to content

Commit 4122919

Browse files
brianquinlanCommit Queue
authored and
Commit Queue
committed
Remove documentation that indicates that the maximum received datagram size is 64K.
Bug:#31733 CoreLibraryReviewExempt:documentation-only Change-Id: Icde611deb9a0172a5caacf518e9ce01904baf8ad Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/331422 Commit-Queue: Brian Quinlan <[email protected]> Reviewed-by: Ryan Macnak <[email protected]>
1 parent 09fc3f9 commit 4122919

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

sdk/lib/io/socket.dart

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,17 +1169,22 @@ abstract interface class RawDatagramSocket extends Stream<RawSocketEvent> {
11691169
/// added to the [Stream]. If a networking or remote failure occurs then it
11701170
/// will not be reported.
11711171
///
1172-
/// The maximum size of a UDP datagram is 65535 bytes (including both data
1173-
/// and headers) but the practical maximum size is likely to be much lower
1174-
/// due to operating system limits and the network's maximum transmission
1175-
/// unit (MTU).
1172+
/// The maximum size of a IPv4 UDP datagram is 65535 bytes (including both
1173+
/// data and headers) but the practical maximum size is likely to be much
1174+
/// lower due to operating system limits and the network's maximum
1175+
/// transmission unit (MTU).
1176+
///
1177+
/// Some IPv6 implementations may support payloads up to 4GB (see RFC-2675)
1178+
/// but that support is limited (see RFC-6434) and has been removed in later
1179+
/// standards (see RFC-8504).
1180+
///
1181+
/// [Emperical testing by the Chromium team](https://groups.google.com/a/chromium.org/g/proto-quic/c/uKWLRh9JPCo)
1182+
/// suggests that payloads later than 1350 cannot be reliably received.
11761183
int send(List<int> buffer, InternetAddress address, int port);
11771184

11781185
/// Receives a datagram.
11791186
///
11801187
/// Returns `null` if there are no datagrams available.
1181-
///
1182-
/// The maximum length of the datagram that can be received is 65503 bytes.
11831188
Datagram? receive();
11841189

11851190
/// Joins a multicast group.

0 commit comments

Comments
 (0)