Re: [Twisted-Python] deciding to use twisted or not

2009-08-26 Thread Martin-Louis Bright
Thanks! Your advice is much appreciated. martin On Wed, Aug 26, 2009 at 10:08 PM, Glyph Lefkowitz wrote: > On Wed, Aug 26, 2009 at 9:54 PM, Cary Hull wrote: > >> It would certainly be nice if Twisted supported async file io, but in this >> case wouldn't a ProcessProtocol around 'tail -f' be a g

Re: [Twisted-Python] deciding to use twisted or not

2009-08-26 Thread Glyph Lefkowitz
On Wed, Aug 26, 2009 at 9:54 PM, Cary Hull wrote: > It would certainly be nice if Twisted supported async file io, but in this > case wouldn't a ProcessProtocol around 'tail -f' be a good solution as well? > That could work, but there are a few potential issues. 'tail' does slightly different s

Re: [Twisted-Python] deciding to use twisted or not

2009-08-26 Thread Cary Hull
On Wed, Aug 26, 2009 at 6:41 PM, Glyph Lefkowitz wrote: > On Wed, Aug 26, 2009 at 4:56 PM, Martin-Louis Bright > wrote: > >> I would like to write a small daemon that monitors (tails) a server log, >> parses the entries and sends HTTP requests based on some of those entries. I >> would like it if

Re: [Twisted-Python] deciding to use twisted or not

2009-08-26 Thread Glyph Lefkowitz
On Wed, Aug 26, 2009 at 4:56 PM, Martin-Louis Bright wrote: > I would like to write a small daemon that monitors (tails) a server log, > parses the entries and sends HTTP requests based on some of those entries. I > would like it if the reading of the log file and the sending of http > requests we

Re: [Twisted-Python] OT - adbapi, connection timeouts, mysql - OT

2009-08-26 Thread Clay Gerrard
The way that sqlalchemy implements pool_recycle is "irrespective of idle time" best I can tell from looking at it. Keeping track of the last_used_time seems like it would have been equally reasonable, although perhaps even additional overhead. I'm not sure I understand what you mean by "parame

Re: [Twisted-Python] OT - adbapi, connection timeouts, mysql - OT

2009-08-26 Thread exarkun
On 09:49 pm, clay.gerr...@rackspace.com wrote: >I see this issue (ConnectionLost on MySQL) come up at least once a >month. It's actually the reason I originally joined this discussion >list, but I've yet to see a wholly satisfactory solution. > >Since there is no one true perfect generic way to

Re: [Twisted-Python] OT - adbapi, connection timeouts, mysql - OT

2009-08-26 Thread Clay Gerrard
I see this issue (ConnectionLost on MySQL) come up at least once a month. It's actually the reason I originally joined this discussion list, but I've yet to see a wholly satisfactory solution. Since there is no one true perfect generic way to safely rerun a failed interaction after ConnectionL

[Twisted-Python] deciding to use twisted or not

2009-08-26 Thread Martin-Louis Bright
Hi! I would like to write a small daemon that monitors (tails) a server log, parses the entries and sends HTTP requests based on some of those entries. I would like it if the reading of the log file and the sending of http requests were asynchronous. Should I use twisted for this? Or is twisted ov