noobCoder noobCoder - 1 year ago 75
Java Question

Default timeout for Apache commons TelnetClient, java

I'm using the apache telnetclient library to connect to a switch with a telnet connection, but the problem i'm having is the setDefaultTimeout method will not work. instead of timing out in 1 second like i want,


it takes up 20 seconds to timeout. Has anyone else come across this problem?


Found the answer on this page turns out it was changed to setConnectTimeout(int) instead of setDefaultTimeout(1000)