in src/main/java/org/apache/commons/net/telnet/Telnet.java [434:467]
void processDont(final int option) throws IOException {
if (debugoptions) {
System.err.println("RECEIVED DONT: " + TelnetOption.getOption(option));
}
if (notifhand != null) {
notifhand.receivedNegotiation(TelnetNotificationHandler.RECEIVED_DONT, option);
}
if (willResponse[option] > 0) {
--willResponse[option];
if (willResponse[option] > 0 && stateIsWont(option)) {
--willResponse[option];
}
}
if (willResponse[option] == 0 && requestedWill(option)) {
switch (option) {
default:
break;
}
/* FIX for a BUG in the negotiation (start) */
if (stateIsWill(option) || requestedWill(option)) {
sendWont(option);
}
setWantWont(option);
/* FIX for a BUG in the negotiation (end) */
}
setWont(option);
}