Re: [Twisted-Python] twisted server blocking on MySQL read in main thread when using adbapi.ConnectionPool

2013-05-21 Thread Dan Williams
On 5/21/2013 3:02 AM, Phil Mayers wrote: > On 05/21/2013 01:47 AM, Dan Williams wrote: >> The invocation is simply "py-bt", but it only works if symbols are >> available, which aren't in my case. > > Really, surely Ubuntu LTS has "debug symbol" packag

Re: [Twisted-Python] twisted server blocking on MySQL read in main thread when using adbapi.ConnectionPool

2013-05-20 Thread Dan Williams
The invocation is simply "py-bt", but it only works if symbols are available, which aren't in my case. On 5/20/2013 8:13 PM, Glyph wrote: > > On May 20, 2013, at 2:23 PM, Dan Williams > wrote: > >> Examining the core file shows that the main (reactor) thread is &

[Twisted-Python] twisted server blocking on MySQL read in main thread when using adbapi.ConnectionPool

2013-05-20 Thread Dan Williams
a pretty busy host but there isn't any discernible correlation between times of high I/O or CPU usage and the hangs. Environment is Ubuntu 12.04.1 LTS, Python 2.7.3, Twisted 11.1.0. Thanks for any help! Dan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Ping on Ticket

2012-07-23 Thread Dan Milstein
to start from? http://twistedmatrix.com/trac/report/15 Thanks, -Dan On Jul 23, 2012, at 3:55 PM, Glyph wrote: > > Le Jul 23, 2012 à 12:13 PM, exar...@twistedmatrix.com a écrit : > >> Many people are hesitant to participate in the reviewer side of the >> process. Don't be. >

[Twisted-Python] Ping on Ticket

2012-07-23 Thread Dan Milstein
, -Dan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] deferred graph?

2012-07-18 Thread Dan Stromberg
On Wed, Jul 18, 2012 at 3:32 AM, wrote: > > > I don't think anything in the thread suggested that this approach will > circumvent a time.sleep(10) call. I'm not sure where you're getting this circumvention issue from. > In any case, it won't. Why is there > a time.sleep(10) call there at all

Re: [Twisted-Python] deferred graph?

2012-07-17 Thread Dan Stromberg
On Tue, Jul 17, 2012 at 12:53 PM, wrote: > On 03:40 pm, drsali...@gmail.com wrote: > >> > >>Strangely, this doesn't give the report until after the sleep > >>finishes... ? > > What's strange about that? "time.sleep(10)" doesn't mean "immediately > print out debug information". > Well, if you r

Re: [Twisted-Python] deferred graph?

2012-07-17 Thread Dan Stromberg
On Mon, Jul 16, 2012 at 11:45 PM, Dan Stromberg wrote: > > On Mon, Jul 16, 2012 at 11:20 PM, Andrew Bennetts > wrote: > >> Dan Stromberg wrote: >> […] >> > I'm playing with twisted.internet.defer.setDebugging now. >> > >> > Is there

Re: [Twisted-Python] deferred graph?

2012-07-16 Thread Dan Stromberg
On Mon, Jul 16, 2012 at 11:20 PM, Andrew Bennetts wrote: > Dan Stromberg wrote: > […] > > I'm playing with twisted.internet.defer.setDebugging now. > > > > Is there a corresponding function that can be used to produce its report? > > If I use it in a program wit

Re: [Twisted-Python] deferred graph?

2012-07-16 Thread Dan Stromberg
On Mon, Jul 16, 2012 at 9:54 PM, Andrew Bennetts wrote: > Dan Stromberg wrote: > […] > > Can anyone think of other ways of getting to the bottom of this? Perhaps > > some field in a deferred or deferredList I can introspect to get better > > specifics? > > > >

Re: [Twisted-Python] deferred graph?

2012-07-16 Thread Dan Stromberg
I'm continuing to have some stuck deferreds - deferredlists probably. I had that graphviz/twisted graphing thing working for some test code, but upon applying it to some deferreds that're getting stuck in some production code, I didn't get the same pleasing output - not entirely surprising. Part o

Re: [Twisted-Python] How to best log server/client interactions from a test?

2012-07-16 Thread Dan Milstein
client, and hooking them up, that I'm in this situation. -D On Jul 13, 2012, at 6:21 PM, Glyph wrote: > > On Jul 12, 2012, at 1:31 PM, Dan Milstein wrote: > >> 'lo all, >> >> I've been doing some work with the twisted.mail.imap4 module, and its

[Twisted-Python] How to best log server/client interactions from a test?

2012-07-12 Thread Dan Milstein
seem Very Wrong Indeed to make noisy suddenly produce vastly more log output). Is that something people might be interested in? Thanks, -Dan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] deferred graph?

2012-07-02 Thread Dan Stromberg
On Thu, Jun 28, 2012 at 9:40 PM, Dan Stromberg wrote: > > Hi. > > I'm a Twisted neophyte, but I've been using Python a long time. > > My question: > Is there a way of producing a deferred graph in a Python program at a > given point in time? Perhaps something

[Twisted-Python] deferred graph?

2012-06-28 Thread Dan Stromberg
Hi. I'm a Twisted neophyte, but I've been using Python a long time. My question: Is there a way of producing a deferred graph in a Python program at a given point in time? Perhaps something based on graphviz and objgraph.py? We're able to detect when we're having the problem, we just don't (yet

Re: [Twisted-Python] AMP Client disconnecting from server on high memory usage

2011-04-06 Thread Dan-Cristian Bogos
Hey Jean-Paul, For record's sake, I thought I announce here that my issue got fixed. The problem was that I was loading the data in startService method and it looks like there are some timers which prevent the method to block for a longer period of time. Loading the data in __init__ of service.Se

[Twisted-Python] AMP Client disconnecting from server on high memory usage

2011-03-22 Thread Dan-Cristian Bogos
Hey Guys, Some issue I've met recently when experimenting with AMP. Have created an AMP client connecting to a server and stay there connected (using tap services). The issues I am getting is that as soon as I load some more serious data into twisted process (about 700MB on a virtual machine with

Re: [Twisted-Python] The case of the missing Traceback

2009-11-03 Thread Dan
Awesome! Thanks for helping out a noob Terry! :) At 02:11 PM 11/3/2009, you wrote: > >>>>> "Dan" == Dan writes: >Dan> I was playing around with Twisted today and ran into a problem where >Dan> Tracebacks aren't emitted on stderr after a deferred

[Twisted-Python] The case of the missing Traceback

2009-11-03 Thread Dan
I was playing around with Twisted today and ran into a problem where Tracebacks aren't emitted on stderr after a deferred callback from a process called launched by reactor.spawnProcess. The simplified test case is below. I put "x = y" in the callback function to generate an exception, y do

Re: [Twisted-Python] reactor.stop() and deferToThead

2009-05-29 Thread Dan
Python seems to intentionally make aborting threads nigh impossible. You're probably way better off doing something akin to this: def stuff2(): time.sleep(4) if reactor.running: print "stuff2 finished" else: print "Don't need to stuff2" Also ii

Re: [Twisted-Python] Twisted protocol as Django data source

2009-05-28 Thread Dan
ad sync issues. I could write a trigger for the synchronization, but that would break sqlite support, which I'm trying to keep in since it was requested at a conference. Thank you all again for the advice, and I'm sorry if I misspelled anybody's name. As I continue to work with this project, you'll doubtless hear from me again. -Dan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Guidance on Proxy-type Application

2009-05-28 Thread Dan
ed on them by the reactor. should be prominently featured somewhere. -Dan ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] Twisted protocol as Django data source

2009-05-27 Thread Dan
which just polls a database repeatedly and altering my Twisted app so it repeatedly does an UPDATE. All of these solutions feel hacky to me, so I'd like to ask you, the list, how you'd go about doing this. Thanks, Dan ___ Twisted-Pyth