diff --git a/transport/src/main/java/io/netty/channel/socket/DefaultDatagramChannelConfig.java b/transport/src/main/java/io/netty/channel/socket/DefaultDatagramChannelConfig.java index eb9c2b0adb..22f9527532 100644 --- a/transport/src/main/java/io/netty/channel/socket/DefaultDatagramChannelConfig.java +++ b/transport/src/main/java/io/netty/channel/socket/DefaultDatagramChannelConfig.java @@ -125,6 +125,8 @@ public class DefaultDatagramChannelConfig extends DefaultChannelConfig implement setTimeToLive((Integer) value); } else if (option == IP_TOS) { setTrafficClass((Integer) value); + } else if (option == UDP_RECEIVE_PACKET_SIZE) { + setReceivePacketSize((Integer) value); } else { return super.setOption(option, value); }