Re: [Twisted-Python] code coverage when code executed in a twisted worker thread

2018-12-03 Thread Chris Withers
On 01/12/2018 16:09, Kyle Altendorf wrote: On November 29, 2018 8:10:41 AM EST, Chris Withers wrote: I've noticed that code coverage doesn't appear to be recorded when code is executed in something that has been deferToThread'ed. Is this a known issue? Does anyone have

[Twisted-Python] why can't a callback be called with a deferred?

2019-02-19 Thread Chris Withers
without any context of what problem lead him to introduce the change. Of course, I can work around it, was more curious than anything... Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mail

Re: [Twisted-Python] why can't a callback be called with a deferred?

2019-02-19 Thread Chris Withers
e simulate # async state manipulation. # now I want to make sure the deferred chain on the onMessage result has been completed: yield result cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-b

Re: [Twisted-Python] why can't a callback be called with a deferred?

2019-02-20 Thread Chris Withers
if unusual, and that assert trips it up. cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] why can't a callback be called with a deferred?

2019-02-20 Thread Chris Withers
#x27;s no always true. Anyway, I'm happy with the API I have now, and it neatly works around that assert, so ¯\_(ツ)_/¯. Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] http://twistedmatrix.com/ down?

2019-02-25 Thread Chris Withers
Looks to be... Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] a farewell to buildbot

2019-03-03 Thread Chris Withers
What do you make of CircleCI? On 03/03/2019 06:45, Amber Brown wrote: I have been switching matrix.org to Buildkite's open source offering (where you bring your own builders). It might be an option for things like codespeed, which we still

[Twisted-Python] giving a reason when adding a timeout

2019-03-13 Thread Chris Withers
de some context about the timeout? Am I missing something obvious here? Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] giving a reason when adding a timeout

2019-03-13 Thread Chris Withers
rom the API, feel free to send a pull request in GitHub. What's the likely turn around time from me submitting a PR to when it ends up in a released version of Twisted that I can use? Chris ___ Twisted-Python mailing list Twisted-Python@twistedm

Re: [Twisted-Python] ANN: Eliot 1.7, the causal logging library, now with inlineCallbacks support

2019-03-22 Thread Chris Withers
tools like https://www.jaegertracing.io/? Feels like quite a similar approach to Eliot, and it's be fantastic if Eliot could provide contexts to Jaeger for Twisted applications! cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twisted

[Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

2019-03-22 Thread Chris Satterthwaite
workaround). I've cut out several thousand lines to get down to something simple for the example test scripts, but I know the client is still a little long. Again, I'm not sure if attachments work on the mailing list, but I'll attempt to attach the client/server

Re: [Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

2019-03-22 Thread Chris Withers
On 22/03/2019 17:08, Chris Satterthwaite wrote:     def clientConnectionLost(self, connector, reason): Without the rest of your class, it's difficult to see some of the potential problems... Could you put it on a gist somewhere?    

Re: [Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

2019-03-22 Thread Chris Satterthwaite
Hi Chris, The files I attached (with the full classes) made it through to my email, but I wondered if they would they go through to everyone. Here's a gist with the same scripts: https://gist.github.com/codingadvocate/f732da79ddf6cef4b7a0b6b3679f519f And yep, as you mentioned, a '

Re: [Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

2019-03-22 Thread Chris Satterthwaite
Hi Sean, Thanks for the suggestion; I’ll take a look. -Chris From: Twisted-Python On Behalf Of Sean DiZazzo Sent: Friday, March 22, 2019 3:09 PM To: Twisted general discussion Subject: Re: [Twisted-Python] stop/start client connections with loseConnection in

Re: [Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

2019-03-26 Thread Chris Withers
going with ReconnectingClientFactory because it works and didn't look like it'd need much effort to integrated into an existing code base. cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix

Re: [Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

2019-03-26 Thread Chris Withers
On 22/03/2019 23:26, Chris Satterthwaite wrote: Hi Chris, The files I attached (with the full classes) made it through to my email, but I wondered if they would they go through to everyone. Here's a gist with the same scripts: https://gist.github.com/codingadv

Re: [Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

2019-03-26 Thread Chris Satterthwaite
Hi Chris, The print and sleep statements are just my efforts at converting something big down to something small for a test case. In the actual client I'm using twisted.logger for FilteringLogObserver's and Logger's. The looping call for system health was also a shorted ve

Re: [Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

2019-04-01 Thread Chris Withers
utobahn_websocket_client.py for example. I do still have writing docs for carly on my list of things to do. It would be great if Twisted ever had a real testing reactor, but I think we all know that's never going to happen ;-) Besides, it's actually useful to test with real network

Re: [Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

2019-04-02 Thread Chris Withers
utoBahn, seems to be something common in Twisted...) Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] ws(s):// urls and host/port duplication in twisted/autobahn code

2019-04-09 Thread Chris Withers
Not sure what you mean by fully qualified? (This isn't necessarily aimed at AutoBahn, seems to be something common in Twisted...) things look only "simple" when leaving out details;) There's never a reasonable excuse for duplicating the same inf

[Twisted-Python] finding out what's blocking the reactor

2019-05-13 Thread Chris Withers
the best way to debug a twisted application to find out what's blocking the reactor? cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] finding out what's blocking the reactor

2019-05-15 Thread Chris Withers
On 14/05/2019 16:39, Scott, Barry wrote: On Monday, 13 May 2019 15:26:01 BST Chris Withers wrote: Hi All, On some busy instances of the app I'm working with/on, we see websocket connections being dropped due to not ping/ponging in time, I'm fairly sure this is as a result of some us

Re: [Twisted-Python] finding out what's blocking the reactor

2019-05-15 Thread Chris Withers
On 14/05/2019 22:14, Werner Thie wrote: Hi all with periods of seemingly no activity the gc comes to mind. Hmm, gc blocking the process is an interesting thought, what evidence would you see with gdb, etc, to show that this was the problem? Chris

Re: [Twisted-Python] Binary wheels for Twisted on Windows?

2019-06-01 Thread Chris Satterthwaite
URL: https://www.visualstudio.com/vs/community/ 2. Download and run the vs_community file 3. Select "Desktop development with C++" 4. Reboot when finished -Chris From: Twisted-Python On Behalf Of Griatch Art Sent: Tuesday, May 28, 2019 6:04 AM To: twis

Re: [Twisted-Python] Getting nice logging outputs in py.test

2019-07-04 Thread Chris Withers
this as an output to stdout: How are you running the reactor in your pytest suites? I've not found a sane way to do this and so would recommend sticking with trial, crufty and old though it feels... cheers, Chris ___ Twisted-Python mailing

Re: [Twisted-Python] Getting nice logging outputs in py.test

2019-07-04 Thread Chris Withers
res. Poor support in pycharm for trial versus first class support for pytest. That's just off the top of my head, use pytest for a year or two and coming back to trial may well feel the same. cheers, Chris ___ Twisted-Python mailing list Twisted-

Re: [Twisted-Python] unified filesystem API

2020-05-15 Thread Chris Withers
enough" to not need async interfaces, but that can really not be the case for networked filesystems (NFS, GPFS, etc) where the blocking time for reading or writing can be seconds (or minutes if it's having a bad day!). What's the Twisted solution for these kinds of things? D

Re: [Twisted-Python] unified filesystem API

2020-05-15 Thread Chris Withers
On 16/05/2020 07:42, Glyph wrote: On May 15, 2020, at 11:30 PM, Chris Withers <mailto:ch...@withers.org>> wrote: On 16/05/2020 06:55, Glyph wrote: This does point out one of my secret hopes for SMB: that a file server's maintainers will care enough about file throughput that

[Twisted-Python] twisted vs asyncio vs tornado (and other event loops?)

2020-11-23 Thread Chris Withers
into this world... cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] automat question

2021-03-07 Thread Chris Withers
Hi, Apologies if there's a better list for this, please let me know where... I've grown to like Glyph's automat package a lot, but in a current project, I have observers that need to know when a machine changes state. What's the best way to let those observers k

Re: [Twisted-Python] automat question

2021-03-09 Thread Chris Withers
UoW, it wants to call either machine.result(...) or machine.error(...) to say what happened, but how do I wire in the front end bit that needs to get called when this happens? cheers, Chris On 07/03/2021 22:34, Glyph wrote: Automat is designed to make this sort of thing intentionally annoy

Re: [Twisted-Python] automat question

2021-03-15 Thread Chris Withers
On 09/03/2021 18:53, Glyph wrote: On Mar 9, 2021, at 3:18 AM, Chris Withers <mailto:ch...@withers.org>> wrote: I'm not sure we're quite on the same page: I'm not looking to inspect the state, but more be notified when certain edges are traversed. The way you get

Re: [Twisted-Python] automat question

2021-03-16 Thread Chris Withers
upon(flip, enter=on_state, outputs=[]) What I'm looking to do is something along the lines of: aSwitch = LightSwitch() aSwitch.flip.addListener(myCallable) myCallable might well be a deferred that something else is waiting on... Chris ___ Twisted-P

[Twisted-Python] ping?

2014-03-11 Thread Chris Withers
Sorry, not sure mail is getting through from the list... -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedm

[Twisted-Python] which async framework?

2014-03-12 Thread Chris Withers
g python implementations. How should I pick between the options? What would people recommend and why? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk __

Re: [Twisted-Python] which async framework?

2014-03-12 Thread Chris Withers
nteresting if I ever hit performance problems... A common criticism of Twisted is that it "takes over" your codebase. I am speaking at PyCon in about a month to demonstrate that that isn't true. (It just looks that way, because once people use it, they don't want to go back...

[Twisted-Python] git?

2014-03-12 Thread Chris Withers
Hi All, Is there a git mirror of the twisted repo anywhere? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk ___ Twisted-Python mailing list Twisted-Python@twistedmatrix

[Twisted-Python] building offline docs

2014-03-12 Thread Chris Withers
Sorry, more questions... Unfortunately, most of the time I have for learning and research is offline. How can I build the docs for browsing (html) from a subversion checkout? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting -

Re: [Twisted-Python] git?

2014-03-12 Thread Chris Withers
On 12/03/2014 23:52, Glyph Lefkowitz wrote: On Mar 12, 2014, at 3:43 PM, Christopher Armstrong mailto:ra...@twistedmatrix.com>> wrote: On March 12, 2014 at 5:39:36 PM, Chris Withers (ch...@simplistix.co.uk <mailto:ch...@simplistix.co.uk>) wrote: Hi All, Is there a git mirror of

Re: [Twisted-Python] git?

2014-03-13 Thread Chris Withers
On 13/03/2014 11:17, HawkOwl wrote: If you want git access, we have that already (both read and write!),\ So, if I hypothetically put in a pull request via GitHub, that would "just work"? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting

Re: [Twisted-Python] git?

2014-03-20 Thread Chris Withers
On 13/03/2014 19:38, Glyph Lefkowitz wrote: On Mar 12, 2014, at 11:53 PM, Chris Withers mailto:ch...@simplistix.co.uk>> wrote: Not to be too contentious, but when do you reckon you guys will switch the main repo to git? Just to be clear about the nature of my other answers: we do not &

Re: [Twisted-Python] Call For Participation: a review rally before the race!

2014-10-09 Thread Chris Wolfe
Sure - I'm not a committer, but I'll do my best. Am 09.10.2014 18:21 schrieb "HawkOwl" : > On 10 Oct 2014, at 6:56, Glyph Lefkowitz wrote: > > > On November 1, ClusterHQ is going to be hosting a Twisted sprint in > Boston. > > > > One of the things that tends to put a damper on such events is the

Re: [Twisted-Python] Call For Participation: a review rally before the race!

2014-10-09 Thread Chris Wolfe
Yes - I have, I'm herrwolfe Am 09.10.2014 18:47 schrieb "Glyph Lefkowitz" : > On Oct 9, 2014, at 4:39 PM, Chris Wolfe wrote: > > Sure - I'm not a committer, but I'll do my best.\ > > Thanks Chris, your participation is much appreciated! > > Now we&#

<    1   2