-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b15
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8259850 | 11.0.11 | Patrick Concannon | P4 | Resolved | Fixed | b01 |
The default value of net.inet.udp.maxdgram on macOS is 9216 which limits the size of the datagram that can be sent by applications that don't set the SO_SNDBUF option. Legacy DatagramSocket sets the value to 65507 at creation time. Sending large datagrams will clearly require fragmentation so it's not optimal but there may be applications that depend on it (the patch to set the socket option to 65507 seems to come from the original Apple port).
The attached patch updates DatagramChannel so that the SO_SNDBUF is set to a minimum value of 65527 for IPv6 sockets and 65507 for IPv4 sockets.
The attached patch updates DatagramChannel so that the SO_SNDBUF is set to a minimum value of 65527 for IPv6 sockets and 65507 for IPv4 sockets.
- backported by
-
JDK-8259850 (dc) Initial value of SO_SNDBUF should allow sending large datagrams (macOS)
- Resolved
- relates to
-
JDK-8230211 Prepare DatagramSocket for alternative DatagramSocketImpl
- Resolved
-
JDK-8242885 PlainDatagramSocketImpl doesn’t allow for the sending of IPv6 datagrams on macOS with sizes between 65508-65527 bytes
- Resolved
-
JDK-8243488 Add tests for set/get SendBufferSize and getReceiveBufferSize in DatagramSocket
- Resolved