From 42c1ce65e9507ef9267feadfa34da02e82409b13 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 18 Jan 2018 10:18:13 +0000 Subject: [PATCH] Disable Reactor Netty's use of kqueue/epoll There is a suspicion that the use of epoll is causing the intermittent failures being tracked by gh-10569. This commit disables the use of epoll to see if it improves the situation. See gh-10569 --- .../boot/web/embedded/netty/NettyReactiveWebServerFactory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/netty/NettyReactiveWebServerFactory.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/netty/NettyReactiveWebServerFactory.java index ec18fee859a..801e33c71d9 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/netty/NettyReactiveWebServerFactory.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/netty/NettyReactiveWebServerFactory.java @@ -97,6 +97,7 @@ public class NettyReactiveWebServerFactory extends AbstractReactiveWebServerFact if (getCompression() != null && getCompression().getEnabled()) { options.compression(getCompression().getMinResponseSize()); } + options.preferNative(false); applyCustomizers(options); }).build(); }