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:
parent
1914679b00
commit
7a70fabb07
@ -32,7 +32,7 @@ public class EpollSocketConnectTest extends SocketConnectTest {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void enableTcpFastOpen(ServerBootstrap sb, Bootstrap cb) {
|
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);
|
cb.option(ChannelOption.TCP_FASTOPEN_CONNECT, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user