[Twisted-Python] timeout in agent

Itamar Turner-Trauring itamar at itamarst.org
Mon Aug 30 07:56:07 EDT 2010

On Mon, 2010-08-30 at 10:54 +0200, Pet wrote:
> Hello!
> I have modified Agent.request method (twisted.web.client.Agent) to
> pass timeout parameter to
> d = cc.connectTCP(host, port, timeout=timeout)
> but it looks like timeout is ignored (cbConnected is called). Is this
> known issue?

Are you sure the connection happened after the timeout, not before?
Also, keep in mind that the timeout is only on the connection *attempt*,
once you're connected the timeout no longer applies.

More information about the Twisted-Python mailing list