Apache TelnetClient throws Time Out Exception on every second attempt of read on same
posted 8 years ago
I am using Apache TelnetClient api to communicate with Telent server. I can send first command successfully and can read the response for the same, then after some time if i send the command using same TelnetClient instance, it executes the command but on read it gives the exception ReadTimeOut. I tried with different values of soTimeOut (5,10,15,20 secs) but it won't changed the behavior. seems some bug with apache telnet api, i also tried the workarround setReader(false), but unfortunately it won't work. any suggestion will be helpful.