[Twisted-Python] timeout in agent

Pet petshmidt at googlemail.com
Mon Aug 30 08:27:12 EDT 2010

On Mon, Aug 30, 2010 at 1:56 PM, Itamar Turner-Trauring
<itamar at itamarst.org> wrote:
> 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.

You are right, connection was maid. But the data wasn't there. Does
Twisted wait for data until remote server closes connection?


> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

More information about the Twisted-Python mailing list