Re: [Twisted-Python] Another newbie question... out of file descriptors?

2010-02-25 Thread K. Richard Pixley
Glyph Lefkowitz wrote: On Feb 25, 2010, at 10:00 PM, exar...@twistedmatrix.com wrote: On 03:55 am, r...@noir.com wrote: Can anyone explain this result to me? It looks to me as though the SelectReactor is leaking file descriptors. Granted, it's a pathological case, but it's not uncommo

[Twisted-Python] Another newbie question... out of file descriptors?

2010-02-25 Thread K. Richard Pixley
Can anyone explain this result to me? It looks to me as though the SelectReactor is leaking file descriptors. Granted, it's a pathological case, but it's not uncommon if you're running a bunch of tests. --rich r...@black.noir.com> cat demo.py from twisted.internet.selectreactor import SelectR

Re: [Twisted-Python] multiprocessing capability?

2010-02-25 Thread K. Richard Pixley
in some situations (e.g. when I try to pass a class method to a native thread). On Wed, 2010-02-24 at 12:04 -0800, K. Richard Pixley wrote: Glyph Lefkowitz wrote: On Feb 21, 2010, at 8:00 PM, Alexandre Quessy wrote Hello everyone, I have done something similar to this, but I used the c

[Twisted-Python] python3 story?

2010-02-25 Thread K. Richard Pixley
Does twisted have a python3 story? Whatever it is, it should probably be in the release 10 doc and perhaps also on the web site. --rich ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/

Re: [Twisted-Python] multiprocessing capability?

2010-02-25 Thread K. Richard Pixley
Mikhail Terekhov wrote: On Wed, Feb 24, 2010 at 3:04 PM, K. Richard Pixley wrote: I'm working on an interface right now to the spread toolkit, (http://spread.org), which implements virtual synchrony, (http://en.wikipedia.org/wiki/Virtual_synchrony). For distributed, symmetric,

Re: [Twisted-Python] multiprocessing capability?

2010-02-24 Thread K. Richard Pixley
Glyph Lefkowitz wrote: On Feb 21, 2010, at 8:00 PM, Alexandre Quessy wrote Hello everyone, I have done something similar to this, but I used the children IO stream to control them. Maybe I should have done that using some higher level protocol, such as AMP or PB. Using a higher-level proto

[Twisted-Python] web page on doc...

2010-02-16 Thread K. Richard Pixley
I've been going around and around on documentation with/for twisted for a few days now. For example, I read things like "the documentation is written in epytext" and "documentation is processed by trial" and conclude that trial processes epytext. I think I'm beginning to understand what's real

Re: [Twisted-Python] newbie confusion - puzzling reactor response

2010-02-12 Thread K. Richard Pixley
Glyph Lefkowitz wrote: > If you only have one disk, you can only really get a benefit from two, maybe > three file I/O slave processes, and that's a fairly small amount of resources > to manage. Granted, it's tricky to really identify how many "disks" you've > got in a system, and the performan

Re: [Twisted-Python] newbie confusion - puzzling reactor response

2010-02-12 Thread K. Richard Pixley
exar...@twistedmatrix.com wrote: > Also, you won't accomplish much by adding a file descriptor for a normal > file to the reactor. Select, poll, etc, will always indicate that such > descriptors are both readable and writeable. Er... on second thought... isn't there still a utility in asynchrono

Re: [Twisted-Python] newbie confusion - puzzling reactor response

2010-02-12 Thread K. Richard Pixley
exar...@twistedmatrix.com wrote: > It isn't `doRead`'s job to close the file descriptor. At most, it's > `doRead`'s job to signal that the descriptor is no longer worth keeping > open by returning something like an instance of ConnectionDone or > ConnectionLost. Then the reactor will call conn

Re: [Twisted-Python] newbie confusion - puzzling reactor response

2010-02-10 Thread K. Richard Pixley
ch (still a newbie) Mark Bailey wrote: Hi: Aren't you adding two readers? One is added in the __init__ method of inputFile, the other in the test code. I'm also a newbie so maybe I'm equally confused... On Tue, Feb 9, 2010 at 8:47 PM, K. Richard Pixley ma

Re: [Twisted-Python] newbie confusion - puzzling reactor response

2010-02-10 Thread K. Richard Pixley
I'm also a newbie so maybe I'm equally confused... On Tue, Feb 9, 2010 at 8:47 PM, K. Richard Pixley <mailto:r...@noir.com>> wrote: I'm confused be the response I get to the attached program. In a nutshell, I'm building a reader, attaching it with addReader,

[Twisted-Python] newbie confusion - puzzling reactor response

2010-02-09 Thread K. Richard Pixley
I'm confused be the response I get to the attached program. In a nutshell, I'm building a reader, attaching it with addReader, later removing it with removeReader. And I'm getting this: time python test_reactor.py Traceback (most recent call last): Failure: twisted.internet.error.Con

[Twisted-Python] minor doc patch - IWriteDesriptor

2010-02-08 Thread K. Richard Pixley
--- twisted/internet/interfaces.py.~1~2009-01-22 06:01:46.0 -0800 +++ twisted/internet/interfaces.py2010-02-08 11:42:03.0 -0800 @@ -833,7 +833,7 @@ I add writer to the set of file descriptors to get write events for. @param writer: An L{IWriteDescriptor

[Twisted-Python] twisted + virtual synchrony

2010-02-03 Thread K. Richard Pixley
Has anyone done any work towards integrating any virtual synchrony system, (like spread - http://spread.org), into twisted? --rich ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twiste