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

2011-03-03 Thread Jason J. W. Williams
Hi All, I've got a situation where I'm using t.w.c.Agent to make 100,000 POST request against a server. Each time a new Agent instance is built and the request is sent using it. After about 20,000 requests, I get this error: Failure: twisted.internet.error.ConnectError: An error occurred while co

Re: [Twisted-Python] Question regarding the working of twisted python with celery

2011-03-03 Thread Andrew Bennetts
Dinesh Kapoor wrote: [...] >4. When celery is run with concurrency of 2, then I tried printing out the >process ids of calling process in the reactor code, and I am getting 2 >different pids, so I am assuming there are two seperate copies of reactor >in those separate tasks. This s

Re: [Twisted-Python] Asynchronous context in Twisted

2011-03-03 Thread Glyph Lefkowitz
On Mar 3, 2011, at 7:31 AM, Fantix King wrote: > Hi, > > I tried to make python.context work in asynchronous code between main loops. > Anyone has similar experience to share please? > > Not sure if I am rebuilding a wheel :P > > http://code.google.com/p/little-site/source/browse/littlesite/cu

Re: [Twisted-Python] PyCon 2011 Twisted Sprint

2011-03-03 Thread Tom Davis
On Thu, Mar 3, 2011 at 1:18 AM, Glyph Lefkowitz wrote: > > On Mar 3, 2011, at 12:21 AM, Tom Davis wrote: > > On Wed, Mar 2, 2011 at 11:45 PM, Glyph Lefkowitz > wrote: > >> >> On Mar 2, 2011, at 11:28 PM, exar...@twistedmatrix.com wrote: >> >> > On 8 Feb, 04:24 pm, exar...@twistedmatrix.com wrote:

Re: [Twisted-Python] Question regarding the working of twisted python with celery

2011-03-03 Thread Dinesh Kapoor
Thanks Reza and Jean-Paul for your response. Actually, I tried investigating a bit more that whether the reactor is in different process than the calling celery task, and it doesn't seem to be the case. The workflow that I am assuming is as follows: 1. Celery creates a worker process and assigns a

[Twisted-Python] Asynchronous context in Twisted

2011-03-03 Thread Fantix King
Hi, I tried to make python.context work in asynchronous code between main loops. Anyone has similar experience to share please? Not sure if I am rebuilding a wheel :P http://code.google.com/p/little-site/source/browse/littlesite/custom_reactor.py BR, Fantix. ___