Re: [Twisted-Python] How to detect when there is nothing waiting in the event queue

2009-09-15 Thread exarkun
On 04:11 pm, ma...@lumierevfx.com wrote: >Hi, we've been using Twisted in an internal project for the past 4 >months. It's a system that polls for events from a web source (looping >call) and also accepts connections via perspective broker. Each of >these >events is turned into a series of Deferre

Re: [Twisted-Python] simple global counter

2009-09-15 Thread Artem Bokhan
Tim Allen пишет: > On Mon, Sep 14, 2009 at 10:09:38PM +0700, Artem Bokhan wrote: > >> May somebody give a sample code of simple global counter which could be >> used with twisted (non-web) enviroment? >> > > I'm not sure what you mean. I want find out if it's possible to count things in c

Re: [Twisted-Python] simple global counter

2009-09-15 Thread Tim Allen
On Tue, Sep 15, 2009 at 04:54:09PM +0700, Artem Bokhan wrote: > Tim Allen пишет: > > On Mon, Sep 14, 2009 at 10:09:38PM +0700, Artem Bokhan wrote: > > > >> May somebody give a sample code of simple global counter which could be > >> used with twisted (non-web) enviroment? > > > > I'm not sure w

[Twisted-Python] run queries in deffered, but not in transaction

2009-09-15 Thread Pet
Hi, I'd like to run several queries in background, some of them may fail. Currently, I do runInteraction for each query. Is there a way to run them all in one deferred, so that if one of them fails, other are not aborted? Thanks in advance! Pet ___ Tw

Re: [Twisted-Python] network server on multiprocessor hardware

2009-09-15 Thread Artem Bokhan
Is there any know implementation of the method author of this thread http://twistedmatrix.com/pipermail/twisted-python/2009-April/019478.html talks about? Bokhan Artem пишет: > Hello. > > Is there right (standard) way to write twisted network server > (tcp/web/mail/etc) which could use several c

Re: [Twisted-Python] memory leak on 8.2.0/2.6 versus 2.5/2.4

2009-09-15 Thread exarkun
On 14 Sep, 08:29 pm, matu...@yahoo.com wrote: >I am running identical twisted servers under high load, one on 2.5.0 >(patched for epoll bug) on python 2.4.4 and second one on 8.2.0 on >python >2.6.2. >The 8.2/2.6 one leaks memory compared to 2.5/2.4.4 to the point that I >am >about to roll back t

Re: [Twisted-Python] run queries in deffered, but not in transaction

2009-09-15 Thread exarkun
On 10:37 am, petshm...@googlemail.com wrote: >Hi, > >I'd like to run several queries in background, some of them may fail. >Currently, I do runInteraction for each query. Is there a way to run >them all in one deferred, so that if one of them fails, other are not >aborted? If you have a function a

Re: [Twisted-Python] run queries in deffered, but not in transaction

2009-09-15 Thread Mark Visser
exar...@twistedmatrix.com wrote: > On 10:37 am, petshm...@googlemail.com wrote: >> >> I'd like to run several queries in background, some of them may fail. >> > > If you have a function along the lines of this one: > > def someInteractions(db): > interactions = [ > db.r

Re: [Twisted-Python] run queries in deffered, but not in transaction

2009-09-15 Thread Pet
On Tue, Sep 15, 2009 at 5:19 PM, Mark Visser wrote: > exar...@twistedmatrix.com wrote: >> On 10:37 am, petshm...@googlemail.com wrote: >>> >>> I'd like to run several queries in background, some of them may fail. >>> >> >> If you have a function along the lines of this one: >> >>     def someInter

[Twisted-Python] hi !!!

2009-09-15 Thread Freddy Martinez Garcia
I wrote my problem in the last message an I wasn't clear with that... Ok... I'm going again... !!! I have a web server... this server was implemented with twisted using XMLRPC... when the server start to run, in this moment I did "reactor.run()"... well, my server is listening by 8080 port, an

Re: [Twisted-Python] hi !!!

2009-09-15 Thread Colin Alston
On Tue, Sep 15, 2009 at 6:47 PM, Freddy Martinez Garcia < fre...@cbm.uo.edu.cu> wrote: > I wrote my problem in the last message an I wasn't clear with that... > > > Ok... I'm going again... !!! > > > I have a web server... this server was implemented with twisted using > XMLRPC... when the server

[Twisted-Python] Perspective Broker for plugins

2009-09-15 Thread tim wylie
Hello, I'm just now undergoing my first real twisted application. There is a main server which users authenticate with, and the main server also has different plugins for chat/whatever features. The client side also has a handler for each of these plugins and then a GTK gui associate with t

Re: [Twisted-Python] memory leak on 8.2.0/2.6 versus 2.5/2.4

2009-09-15 Thread Alec Matusis
> Nothing springs to mind, unfortunately. What parts of Twisted does the > app use? Maybe narrowing the field a bit will help jog someone's > memory... Nothing special: Epoll reactor and twisted.enterprise.adbapi Will keep you guys posted. > -Original Message- > From: twisted-python-