noobCoder noobCoder - 2 years ago 176
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?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download