Make EpollSocketConnectTest correctly configure TFO (#11083)

Motivation:
The EpollSocketConnectTest was not correctly configuring TCP Fast Open on the server socket.
It's an option, not a child option.

Modification:
EpollSocketConnectTest now correctly enables TCP Fast Open on the server side, when available, for the test that needs it.

Result:
Test covers what it was intended to.
This commit is contained in:
Chris Vest 2021-03-14 14:17:06 +01:00 committed by Norman Maurer
parent 1914679b00
commit 7a70fabb07

View File

@ -32,7 +32,7 @@ public class EpollSocketConnectTest extends SocketConnectTest {
@Override
protected void enableTcpFastOpen(ServerBootstrap sb, Bootstrap cb) {
sb.childOption(EpollChannelOption.TCP_FASTOPEN, 5);
sb.option(EpollChannelOption.TCP_FASTOPEN, 5);
cb.option(ChannelOption.TCP_FASTOPEN_CONNECT, true);
}
}