telnetlib read_until()( question
Emile van Sebille
emile at fenx.com
Fri Feb 1 14:38:12 EST 2002
"DeepBleu" <DeepBleu at DeepBleu.org> wrote in message
news:u5lqt76m0ogfd8 at corp.supernews.com...
> For telnetlib's read_until(expected [,timeout])
>
> a. Does anyone know the default value of the timeout when no timeout
is
> given, and
> b. When a timeout is given: Is the numeric value in seconds or
mintues?
telnetlib uses select.select, passing the timeout value. From the
select docs:
FUNCTIONS
select(...)
select(rlist, wlist, xlist[, timeout]) -> (rlist, wlist, xlist)
[snip]
The optional 4th argument specifies a timeout in seconds; it may
be
a floating point number to specify fractions of seconds. If it
is absent
or None, the call will never time out.
HTH,
--
Emile van Sebille
emile at fenx.com
---------
More information about the Python-list
mailing list