Introduce EpollSocketChannelConfig.setTcpKeepCnt as replacement for setTcpKeepCntl.
Motivation: We had a typo in the method name of the EpollSocketChannelConfig. Modifications: Deprecate old method and introduce a new one. Result: Fixes [#6909]
This commit is contained in:
parent
dd69a813d4
commit
773757f2dd
@ -141,7 +141,7 @@ public final class EpollSocketChannelConfig extends EpollChannelConfig implement
|
|||||||
} else if (option == EpollChannelOption.TCP_KEEPIDLE) {
|
} else if (option == EpollChannelOption.TCP_KEEPIDLE) {
|
||||||
setTcpKeepIdle((Integer) value);
|
setTcpKeepIdle((Integer) value);
|
||||||
} else if (option == EpollChannelOption.TCP_KEEPCNT) {
|
} else if (option == EpollChannelOption.TCP_KEEPCNT) {
|
||||||
setTcpKeepCntl((Integer) value);
|
setTcpKeepCnt((Integer) value);
|
||||||
} else if (option == EpollChannelOption.TCP_KEEPINTVL) {
|
} else if (option == EpollChannelOption.TCP_KEEPINTVL) {
|
||||||
setTcpKeepIntvl((Integer) value);
|
setTcpKeepIntvl((Integer) value);
|
||||||
} else if (option == EpollChannelOption.TCP_USER_TIMEOUT) {
|
} else if (option == EpollChannelOption.TCP_USER_TIMEOUT) {
|
||||||
@ -414,10 +414,18 @@ public final class EpollSocketChannelConfig extends EpollChannelConfig implement
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated use {@link #setTcpKeepCnt(int)}
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
public EpollSocketChannelConfig setTcpKeepCntl(int probes) {
|
||||||
|
return setTcpKeepCnt(probes);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the {@code TCP_KEEPCNT} option on the socket. See {@code man 7 tcp} for more details.
|
* Set the {@code TCP_KEEPCNT} option on the socket. See {@code man 7 tcp} for more details.
|
||||||
*/
|
*/
|
||||||
public EpollSocketChannelConfig setTcpKeepCntl(int probes) {
|
public EpollSocketChannelConfig setTcpKeepCnt(int probes) {
|
||||||
try {
|
try {
|
||||||
channel.socket.setTcpKeepCnt(probes);
|
channel.socket.setTcpKeepCnt(probes);
|
||||||
return this;
|
return this;
|
||||||
|
Loading…
Reference in New Issue
Block a user