Re: [Twisted-Python] Twisted + Redis-py + Connection Pooling

2012-09-28 Thread Itamar Turner-Trauring
One problem in the code: it kinda seems you want to receive lines, but you're overriding dataReceived instead of lineReceived in RedisWorkProtocol. At the very minimum you shouldn't assume dataReceived is called with the exact bytes that were written on the other side. More importantly, I assume r

Re: [Twisted-Python] MemoryError in twisted causes the program to exit, or not

2012-09-28 Thread Antoine Pitrou
On Fri, 28 Sep 2012 11:40:54 -0700 Glyph wrote: > > Le Sep 28, 2012 à 1:10 AM, Antoine Pitrou a écrit : > > > (whether Python itself should try to GC-collect when MemoryError is > > raised is an open question) > > Shouldn't it be doing a GC collect _before_ MemoryError is raised? (Isn't > thi

Re: [Twisted-Python] MemoryError in twisted causes the program to exit, or not

2012-09-28 Thread Glyph
Le Sep 28, 2012 à 1:10 AM, Antoine Pitrou a écrit : > (whether Python itself should try to GC-collect when MemoryError is > raised is an open question) Shouldn't it be doing a GC collect _before_ MemoryError is raised? (Isn't this rather the whole point of having a garbage collector?) -glyph_

Re: [Twisted-Python] unhandled exception in deferred has a delayed logging ?

2012-09-28 Thread Glyph
Le Sep 28, 2012 à 10:16 AM, exar...@twistedmatrix.com a écrit : > On 27 Sep, 11:15 am, p.may...@imperial.ac.uk wrote: >> On 27/09/12 03:47, Jonathan Vanasco wrote: >>> thanks so much for the quick response, and i wish i thought of >>> looking in the FAQ ( just searched online, and nothing relevan

Re: [Twisted-Python] unhandled exception in deferred has a delayed logging ?

2012-09-28 Thread exarkun
On 27 Sep, 11:15 am, p.may...@imperial.ac.uk wrote: >On 27/09/12 03:47, Jonathan Vanasco wrote: >>thanks so much for the quick response, and i wish i thought of >>looking in the FAQ ( just searched online, and nothing relevant came >>up ) >> >>Will defer.setDebugging(True) make these errors print/l

Re: [Twisted-Python] dynamic FTP realm

2012-09-28 Thread Tom Sheffler
Hi Paul - I'm very new to twisted (I've only just started using it, so I apologise if > anything I ask is seemingly obvious!). > I'm looking to try and set up a FTP server which will serve a file > structure and files which don't exists on the server (the file structure > information is stored on

Re: [Twisted-Python] MemoryError in twisted causes the program to exit, or not

2012-09-28 Thread Antoine Pitrou
On Fri, 28 Sep 2012 00:09:23 -0700 Glyph wrote: > > Le Sep 27, 2012 à 7:41 PM, Benjamin Rutt a écrit : > > > Hi, I am trying to understand what will happen in my long-running twisted > > server program when the available memory is low. > > Probably nothing good. > > > If I run the following

Re: [Twisted-Python] MemoryError in twisted causes the program to exit, or not

2012-09-28 Thread Glyph
Le Sep 27, 2012 à 7:41 PM, Benjamin Rutt a écrit : > Hi, I am trying to understand what will happen in my long-running twisted > server program when the available memory is low. Probably nothing good. > If I run the following program with increasing numeric seeds as arguments, 0, > 1, 2, 3,