[Twisted-Python] timeout in agent

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? Thanks!

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.

On Mon, Aug 30, 2010 at 1:56 PM, Itamar Turner-Trauring <itamar@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? Thanks!
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (2)
-
Itamar Turner-Trauring
-
Pet