diff --git a/transport/src/main/java/io/netty/channel/AdaptiveRecvByteBufAllocator.java b/transport/src/main/java/io/netty/channel/AdaptiveRecvByteBufAllocator.java index d2456dd25b..93d7a803e9 100644 --- a/transport/src/main/java/io/netty/channel/AdaptiveRecvByteBufAllocator.java +++ b/transport/src/main/java/io/netty/channel/AdaptiveRecvByteBufAllocator.java @@ -35,7 +35,8 @@ import static java.lang.Math.min; public class AdaptiveRecvByteBufAllocator extends DefaultMaxMessagesRecvByteBufAllocator { static final int DEFAULT_MINIMUM = 64; - static final int DEFAULT_INITIAL = 1024; + // Use an initial value that is bigger than the common MTU of 1500 + static final int DEFAULT_INITIAL = 2048; static final int DEFAULT_MAXIMUM = 65536; private static final int INDEX_INCREMENT = 4;