commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorbjørn Ravn Andersen <thunderax...@gmail.com>
Subject Re: ReadLine takes 3000 ms to read the last line from telnet
Date Sun, 09 Mar 2008 13:56:10 GMT
Aram Mirzadeh skrev  den 08-03-2008 23:29:
> Hello,
>
> I am opening a telnet stream to a cisco router to login.   Than calling
>
> String foo = readUntil ("Password: ",false);
>
> .. to read in the banner and the "Password" field so that I know when
> to send in the auth.
>
> But it looks like readLine times out on the last line, takes 30000 ms
> to complete the last read.
>
>   
Does the CISCO return a "end of line" character after the "Password:" 
string?  If not, then ReadLine cannot tell that the line has ended.

-- 
  Thorbjørn

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message