Skip to content

Commit 6200a31

Browse files
committed
Polish
Closes gh-15385
1 parent e9588ca commit 6200a31

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/NettyWebServerFactoryCustomizer.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2018 the original author or authors.
2+
* Copyright 2012-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -91,8 +91,7 @@ private void customizeConnectionTimeOut(NettyReactiveWebServerFactory factory,
9191
int duration) {
9292
factory.addServerCustomizers((NettyServerCustomizer) (httpServer) -> httpServer
9393
.tcpConfiguration((tcpServer) -> tcpServer
94-
.bootstrap((serverBootstrap) -> serverBootstrap.childOption(
95-
ChannelOption.CONNECT_TIMEOUT_MILLIS, duration))));
94+
.selectorOption(ChannelOption.CONNECT_TIMEOUT_MILLIS, duration)));
9695
}
9796

9897
}

0 commit comments

Comments
 (0)