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
c651baa570
commit
3f9750173c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user