[Twisted-Python] Agent and "Cannot assign requested address"

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Fri Mar 4 14:40:14 EST 2011


On 05:09 pm, jasonjwwilliams at gmail.com wrote:
>Actually, I think the TIME_WAIT is the problem. It's what I see in 
>netstat, and the Agent requests are fired sequentially via yield inside 
>a for loop (inlineCallbacks). So they shouldn't be running in parallel.
>
>The use case here is loading a Riak server with keys to prepare for a 
>test. There's not a real way to get around sending one POST per key.
>
>How would I set the timeout value in Twisted? Or do I have to modify 
>the timeout/keepalive systemwide in /proc?

As far as I know, there are only system-wide settings for this value on 
all the major platforms.

It seems like you'll be happiest using persistent connections, though, 
once Agent actually offers those.

Jean-Paul



More information about the Twisted-Python mailing list