CLI API not closing sessions correctly

CLI API not closing sessions correctly

Hi,

I have discovered an issue with the CLI API and am wondering is there a fix/workaround for it?

The issue is the close() method in the CLISession class sends a FIN,ACK message to the devices. This is supposed to be just a FIN message if it were to adhere correctly to the standards.
Most devices however ignore the incorrect flags and exit the session. However some devices are stricter and do not close the session. These are Cisco devices and the result is that the line stays up on the device and all the lines get consumed and never released.
If there is no fix in the code a way to override the close method to set the correct flags would be great.

Thanks,
Joe.

                  New to ADSelfService Plus?