Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion core/src/main/java/io/netty/loom/EventLoopScheduler.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ public EventLoopScheduler(IoEventLoopGroup parent, ThreadFactory threadFactory,
eventLoopThread = vThreadFactory
.newThread(() -> FastThreadLocalThread.runWithFastThreadLocal(this::nettyEventLoop));
ioEventLoop = new ManualIoEventLoop(parent, eventLoopThread,
ioExecutor -> new AwakeAwareIoHandler(eventLoopIsRunning, ioHandlerFactory.newHandler(ioExecutor)));
ioExecutor -> new AwakeAwareIoHandler(eventLoopIsRunning, ioHandlerFactory.newHandler(ioExecutor))) {
@Override
public boolean canBlock() {
return runQueue.isEmpty();
}
};
carrierThread.start();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.stream.Stream;

import io.netty.channel.*;
import io.netty.channel.epoll.Epoll;
import io.netty.channel.local.LocalIoHandler;
import io.netty.channel.epoll.EpollIoHandler;
import io.netty.channel.epoll.EpollServerSocketChannel;
Expand Down Expand Up @@ -63,8 +64,7 @@ boolean isLocal() {
boolean isAvailable() {
return switch (this) {
case NIO -> true;
// TODO disable EPOLL due to https://github.com/netty/netty/issues/15922
case EPOLL -> false;
case EPOLL -> Epoll.isAvailable();
case IO_URING -> IoUring.isAvailable();
case LOCAL -> true;
default -> false;
Expand Down