Re: [Twisted-Python] sharing a dict between child processes

2019-11-07 Thread Scott, Barry
ng end not process messages fast enough. Barry > > On Wed, Nov 6, 2019 at 9:07 AM Scott, Barry > > wrote: > > On Wednesday, 6 November 2019 16:43:52 GMT Waqar Khan wrote: > > > Hi Barry, > > > > > > Thanks for the response. Where can I read more

Re: [Twisted-Python] sharing a dict between child processes

2019-11-07 Thread Scott, Barry
On Thursday, 7 November 2019 05:29:34 GMT Sean DiZazzo wrote: > If you need guaranteed delivery of the data, why not just use a TCP > connection to the unix socket, instead of a UDP connection which inherently > can lose data? In that case I don't think your patch would be needed. > > I didn't

Re: [Twisted-Python] sharing a dict between child processes

2019-11-06 Thread Scott, Barry
he cache to get a benefit. Cache entries only get used a few times? In our case the hit rate is high (99%+) and we just pay the cost of populating the caches on process start up, which ends up being noise. Barry > > On Wed, Nov 6, 2019 at 8:39 AM Scott, Barry > > wrote: > >

Re: [Twisted-Python] sharing a dict between child processes

2019-11-06 Thread Scott, Barry
On Wednesday, 6 November 2019 14:21:22 GMT Maarten ter Huurne wrote: > On Wednesday, 6 November 2019 07:19:56 CET Waqar Khan wrote: > > Hi, > > So, I am writing a twisted server. This server spawn multiple child > > processes using reactor spawnProcess that initializes a process > > protocol. > >

Re: [Twisted-Python] Twisted 19.10.0rc1 Release Candidate Announcement

2019-10-15 Thread Scott, Barry
Is it possible that the tag for the release on github does not have the "twisted-" as a prefix on the version? At the moment the tarballs use a folder name of twisted-twisted-19.x.y rather then the expected twisted-19.x.y folder name. Barry On Monday, 14 October 2019 09:05:35 BST Amber Brown

Re: [Twisted-Python] Code review comment for http.py

2019-10-07 Thread Scott, Barry
On Saturday, 5 October 2019 04:48:03 BST Glyph wrote: > > On Oct 4, 2019, at 4:26 AM, Scott, Barry > > wrote: > > > > I see that there are duplicate lines in http.py in > > _GenericHTTPChannelProtocol.dataReceived() > > > > Notice tha

[Twisted-Python] Code review comment for http.py

2019-10-04 Thread Scott, Barry
I see that there are duplicate lines in http.py in _GenericHTTPChannelProtocol.dataReceived() Notice that around line 2960 two calls to setTimeout(). networkProducer.unregisterProducer() # Cancel the old channel's timeout.

Re: [Twisted-Python] Twisted 19.7.0rc1 Release Candidate Announcement

2019-07-25 Thread Scott, Barry
On Sunday, 21 July 2019 17:24:35 BST Amber Brown wrote: > Hello! It's time for another Twisted release! > > This one is full o' stuff, including: > > - The dropping of Python 3.4 support, Does this still support python 2.7? Barry ___

Re: [Twisted-Python] Need some enlightenment on using web client properly, or maybe nudge a bug to get fixed

2019-07-11 Thread Scott, Barry
On Thursday, 11 July 2019 11:00:33 BST Jarosław Fedewicz wrote: > So far, I tried to minimize a test case, but it seems like it's really > picky about what environment it's running in. One of those cases where "it > works on my machine", I suppose. The versions are as follows: > >

Re: [Twisted-Python] Twisted tips for designing highly concurrent twisted REST API

2019-07-11 Thread Scott, Barry
On Tuesday, 9 July 2019 22:04:11 BST Tom Most wrote: ...snip... > The reactor's own thread pool is really for DNS > resolution. Is that still true in the default case? We are use the twisted code that talks to DNS servers as the threaded resolver adds too much latency. > You risk deadlocks in

[Twisted-Python] TB in tls.py

2019-06-26 Thread Scott, Barry
I'm see this TB often and I'm wondering how to fix it. File "/usr/local/lib/python2.7/site-packages/twisted/internet/base.py", line 902, in runUntilCurrent call.func(*call.args, **call.kw) File "/usr/local/lib/python2.7/site-packages/twisted/web/http.py", line 2333, in forceAbortClient

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

2019-05-28 Thread Scott, Barry
On Tuesday, 28 May 2019 15:05:29 BST Thomas Westfeld wrote: > >On Tuesday, 28 May 2019 12:04:05 BST Griatch Art wrote: > > > >> Hi, > >> > >> > >> > >> I'm investigating installing the Evennia MU* server on Windows. We use > >> Twisted and will be requiring Python3.7 in our next release. I need to

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

2019-05-28 Thread Scott, Barry
On Tuesday, 28 May 2019 12:04:05 BST Griatch Art wrote: > Hi, > > I'm investigating installing the Evennia MU* server on Windows. We use > Twisted and will be requiring Python3.7 in our next release. I need to make > easy-to-use install instructions since a lot of Windows users use our > library.

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

2019-05-15 Thread Scott, Barry
On Wednesday, 15 May 2019 06:30:54 BST Chris Withers wrote: > 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

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

2019-05-15 Thread Scott, Barry
On Wednesday, 15 May 2019 06:27:30 BST Chris Withers wrote: > 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 websocke

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

2019-05-14 Thread Scott, Barry
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 user-written callbacks blocking the > reactor

Re: [Twisted-Python] A Proposal for reducing the burden of developing on Twisted by dropping Python 2 support

2019-04-02 Thread Scott, Barry
On Tuesday, 26 March 2019 04:57:57 BST Glyph wrote: > Hi Barry! > > Thanks for your feedback. > > > On Mar 25, 2019, at 10:22 AM, Scott, Barry > > wrote: > > > > We are stuck on python2.7 for the foreseeable future and you will not see > > us in th

Re: [Twisted-Python] A Proposal for reducing the burden of developing on Twisted by dropping Python 2 support

2019-03-25 Thread Scott, Barry
On Monday, 25 March 2019 10:15:22 GMT Amber Brown wrote: > Hi everyone, > > Since the Python 2 EOL date is rapidly approaching, I thought it was > time we consider dropping Python 2 support. > > I personally find that Python 2 compat adds a huge amount of overhead > when working on and

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

2019-03-25 Thread Scott, Barry
On Thursday, 21 March 2019 15:27:35 GMT Itamar Turner-Trauring wrote: > Python and Twisted's built-in `logging` output a stream of factoids: they’re > interesting, but you can’t really tell what’s going on. > > * Why is your application slow? > * What caused this code path to be chosen? > *

[Twisted-Python] Twisted: [twisted.internet.defer#critical] Unhandled error in Deferred:

2019-02-28 Thread Scott, Barry
Is it intentional to trigger this message? The reason I ask it it comes from defer.py DebugInfo.___del__(). I though that DebugInfo objects are only created if defer.DebugInfo.debug == True. But in Deferred._runCallbacks:701 its created without a check in the debug flag. The reason I have

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

2019-02-28 Thread Scott, Barry
On Wednesday, 27 February 2019 15:11:31 GMT Jean-Paul Calderone wrote: > On Wed, Feb 27, 2019 at 10:07 AM Scott, Barry > > wrote: > > The code I have posted is the good version so it works and the assert > > does not fire. My goal is to show what I assume is th

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

2019-02-27 Thread Scott, Barry
On Wednesday, 27 February 2019 14:45:35 GMT Jean-Paul Calderone wrote: > On Wed, Feb 27, 2019 at 9:34 AM Scott, Barry > > wrote: > > On Tuesday, 26 February 2019 06:34:28 GMT Glyph wrote: > > > > On Feb 25, 2019, at 3:32 AM, Scott, Barry > > > > wrote:>

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

2019-02-27 Thread Scott, Barry
On Tuesday, 26 February 2019 06:34:28 GMT Glyph wrote: > > On Feb 25, 2019, at 3:32 AM, Scott, Barry > > wrote:> > > On Tuesday, 19 February 2019 11:00:57 GMT Chris Withers wrote: > >> Hi All, > >> > >> There's this assert: > >> >

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

2019-02-25 Thread Scott, Barry
On Tuesday, 19 February 2019 11:00:57 GMT Chris Withers wrote: > Hi All, > > There's this assert: > > https://github.com/twisted/twisted/blob/trunk/src/twisted/internet/defer.py# > L459 > > ...and I'd like to understand why it's there. We hit this assert when porting from very old twisted to