aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes Apache TelnetClient throws Time Out Exception on every second attempt of read on same Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Apache TelnetClient throws Time Out Exception on every second attempt of read on same" Watch "Apache TelnetClient throws Time Out Exception on every second attempt of read on same" New topic
Author

Apache TelnetClient throws Time Out Exception on every second attempt of read on same

Sachin Dimble
Ranch Hand

Joined: Dec 07, 2005
Posts: 100
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.

Thanks,
-Sachin.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache TelnetClient throws Time Out Exception on every second attempt of read on same
 
Similar Threads
Java.io Read blocking
Accessing a Remote machine Using Java
HTTP Request froward to other application
Missing TelnetClient class
Timeout while using apache commons net's telnet