[Twisted-Python] Timeouts

Matteo Giacomazzi matteo.giacomazzi at libero.it
Wed Oct 22 06:40:23 EDT 2003


Hi all,

  I'm  doing  some  tests  with  twisted.web.client  and it is working
  pretty fine!

  I've  just  a  doubt: the function getPage accepts a parameter named
  `timeout'  (well,  it  takes it as a **kwarg and pass it along up to
  the factory).
  BTW,  this  is  the  timeout  in  seconds: if the remote host didn't
  return a response within that time, the errback is called.

  Now  the  question:  what  happens  if the remote IP address doesn't
  respond at all (host unreachable)?
  I'm testing it and it seems that the timeout never occours!
  Does it mean that the whole thread is blocked?
  The socket.connect method is blocking?

  Many thanks in advance!

Regards
 Matteo





More information about the Twisted-Python mailing list