[Twisted-Python] Agent and "Cannot assign requested address"
Jason J. W. Williams
jasonjwwilliams at gmail.com
Fri Mar 4 12:09:59 EST 2011
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?
Sent via iPhone
Is your e-mail Premiere?
On Mar 4, 2011, at 6:53, Itamar Turner-Trauring <itamar at itamarst.org> wrote:
> On Fri, 2011-03-04 at 13:33 +0000, exarkun at twistedmatrix.com wrote:
>> It's worse than just "in parallel". After the connection closes, it
>> moves to TIME_WAIT for two minutes. These count towards the limit as
> Oh right:
> You could probably set that yourself with a little hacking until that
> ticket is fixed.
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
More information about the Twisted-Python