From 2de644224cfa383d282c960107a88ebbd5d1409c Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Fri, 25 Nov 2016 08:06:28 +0100 Subject: [PATCH] Correctly mark EpollServerDomainSocketChannel.isActive() as true after bind is complete.] Motivation: We missed to set active = true in EpollServerDomainSocketChannel.doBind(...) which also means that channelActive(...) was never triggered. Modifications: Correct set active = true in doBind(...) Result: EpollServerDomainSocketChannel is correctly set to active when bound. --- .../io/netty/channel/epoll/EpollServerDomainSocketChannel.java | 1 + 1 file changed, 1 insertion(+) diff --git a/transport-native-epoll/src/main/java/io/netty/channel/epoll/EpollServerDomainSocketChannel.java b/transport-native-epoll/src/main/java/io/netty/channel/epoll/EpollServerDomainSocketChannel.java index 958d85a424..c533d24ea1 100644 --- a/transport-native-epoll/src/main/java/io/netty/channel/epoll/EpollServerDomainSocketChannel.java +++ b/transport-native-epoll/src/main/java/io/netty/channel/epoll/EpollServerDomainSocketChannel.java @@ -75,6 +75,7 @@ public final class EpollServerDomainSocketChannel extends AbstractEpollServerCha fd().bind(localAddress); fd().listen(config.getBacklog()); local = (DomainSocketAddress) localAddress; + active = true; } @Override