telnetlib read_until()( question
DeepBleu
DeepBleu at DeepBleu.org
Fri Feb 1 14:51:24 EST 2002
Thanks Emile
I am trying to find out why a telnet connection (using a Python script)
dropped out.
DeepBleu
"Emile van Sebille" <emile at fenx.com> wrote in message
news:a3er56$17h5lp$1 at ID-11957.news.dfncis.de...
>
> "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