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

2010-02-12 Thread Glyph Lefkowitz
On Feb 12, 2010, at 9:51 PM, K. Richard Pixley wrote: > I'm working with parallelized build servers. We often have raided > disks, solid state disks, servers with huge amounts of disk cache > specifically so that an entire build happens in memory, etc. File io is > our bottleneck. Yeah, thi

Re: [Twisted-Python] multiple versions of twisted on same machine

2010-02-12 Thread Glyph Lefkowitz
On Feb 11, 2010, at 5:27 PM, Timothy Allen wrote: > On Thu, 11 Feb 2010 11:54:47 -0600 > Kevin Horn wrote: >> Not entirely related to this discussion (though not entirely >> unrelated), I think that Twisted's whole release/distribution system >> needs to be revamped a little. I've been meaning to

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 Glyph Lefkowitz
On Feb 12, 2010, at 3:11 PM, exar...@twistedmatrix.com wrote: > On 07:35 pm, r...@noir.com wrote: >> >> Er... on second thought... isn't there still a utility in asynchronous >> file io which yields to the reactor? >> >> It may be always readable/writable, but if I simply read/write, I'll >> b

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

2010-02-12 Thread exarkun
On 07:35 pm, r...@noir.com wrote: >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 >>ConnectionLos

Re: [Twisted-Python] Authenticating with md5 hashed passwords

2010-02-12 Thread exarkun
On 06:03 pm, r...@cttc.upc.edu wrote: >Hello everybody, > >I am trying to build a a client/server application using Perspective >Broker and wanting to authenticate against a PostgreSQL database. >Everything works fine if I user plain text passwords, but when trying >to >hash then using md5 using

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

[Twisted-Python] Authenticating with md5 hashed passwords

2010-02-12 Thread Ramiro Alba Queipo
Hello everybody, I am trying to build a a client/server application using Perspective Broker and wanting to authenticate against a PostgreSQL database. Everything works fine if I user plain text passwords, but when trying to hash then using md5 using from hashlib import md5 md5Password = md5(pass

Re: [Twisted-Python] multiple versions of twisted on same machine

2010-02-12 Thread Pet
On Thu, Feb 11, 2010 at 1:55 PM, Matt Bone wrote: > You could try virtualenv: > > http://pypi.python.org/pypi/virtualenv > > And have one virtual environment with Twisted 9.0 and another with > Twisted 8.2, etc, etc. > Thanks! Will try it out > --matt > > On Thu, Feb 11, 2010 at 6:41 AM, Pet wr