From c65165c491680e8c11253c116fe39e11f64d66c5 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 8 Mar 2016 16:46:55 +0100 Subject: [PATCH] Remove TCP_MD5 from EpollServerChannelConfig. Motivation: TCP_MD5 is only supported by SocketChannels so remove it from EpollServerChannelConfig which is generic. Modifications: Remove invalid code. Result: Remove invalid / dead code. --- .../io/netty/channel/epoll/EpollServerChannelConfig.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/transport-native-epoll/src/main/java/io/netty/channel/epoll/EpollServerChannelConfig.java b/transport-native-epoll/src/main/java/io/netty/channel/epoll/EpollServerChannelConfig.java index 7bcea9b0e3..5eeaf4fe21 100644 --- a/transport-native-epoll/src/main/java/io/netty/channel/epoll/EpollServerChannelConfig.java +++ b/transport-native-epoll/src/main/java/io/netty/channel/epoll/EpollServerChannelConfig.java @@ -21,13 +21,11 @@ import io.netty.channel.MessageSizeEstimator; import io.netty.channel.RecvByteBufAllocator; import io.netty.util.NetUtil; -import java.net.InetAddress; import java.util.Map; import static io.netty.channel.ChannelOption.SO_BACKLOG; import static io.netty.channel.ChannelOption.SO_RCVBUF; import static io.netty.channel.ChannelOption.SO_REUSEADDR; -import static io.netty.channel.epoll.EpollChannelOption.TCP_MD5SIG;; public class EpollServerChannelConfig extends EpollChannelConfig { protected final AbstractEpollChannel channel; @@ -72,10 +70,6 @@ public class EpollServerChannelConfig extends EpollChannelConfig { setReuseAddress((Boolean) value); } else if (option == SO_BACKLOG) { setBacklog((Integer) value); - } else if (option == TCP_MD5SIG) { - @SuppressWarnings("unchecked") - final Map m = (Map) value; - ((EpollServerSocketChannel) channel).setTcpMd5Sig(m); } else if (option == EpollChannelOption.TCP_FASTOPEN) { setTcpFastopen((Integer) value); } else {