[SPARK-24029][CORE] Follow up: set SO_REUSEADDR on the server socket.
"childOption" is for the remote connections, not for the server socket that actually listens for incoming connections. Author: Marcelo Vanzin <vanzin@cloudera.com> Closes #21132 from vanzin/SPARK-24029.2.
This commit is contained in:
parent
c8f3ac69d1
commit
428b903859
|
@ -99,8 +99,8 @@ public class TransportServer implements Closeable {
|
|||
.group(bossGroup, workerGroup)
|
||||
.channel(NettyUtils.getServerChannelClass(ioMode))
|
||||
.option(ChannelOption.ALLOCATOR, allocator)
|
||||
.childOption(ChannelOption.ALLOCATOR, allocator)
|
||||
.childOption(ChannelOption.SO_REUSEADDR, !SystemUtils.IS_OS_WINDOWS);
|
||||
.option(ChannelOption.SO_REUSEADDR, !SystemUtils.IS_OS_WINDOWS)
|
||||
.childOption(ChannelOption.ALLOCATOR, allocator);
|
||||
|
||||
this.metrics = new NettyMemoryMetrics(
|
||||
allocator, conf.getModuleName() + "-server", conf);
|
||||
|
|
Loading…
Reference in a new issue