in src/main/java/org/apache/commons/net/telnet/Telnet.java [558:593]
void processWont(final int option) throws IOException {
if (debugoptions) {
System.err.println("RECEIVED WONT: " + TelnetOption.getOption(option));
}
if (notifhand != null) {
notifhand.receivedNegotiation(TelnetNotificationHandler.RECEIVED_WONT, option);
}
if (doResponse[option] > 0) {
--doResponse[option];
if (doResponse[option] > 0 && stateIsDont(option)) {
--doResponse[option];
}
}
if (doResponse[option] == 0 && requestedDo(option)) {
switch (option) {
default:
break;
}
/* FIX for a BUG in the negotiation (start) */
if (stateIsDo(option) || requestedDo(option)) {
sendDont(option);
}
setWantDont(option);
/* FIX for a BUG in the negotiation (end) */
}
setDont(option);
}