Re: [Twisted-Python] Returning a response for an HTTP query that requires upstream IO.

2020-04-22 Thread Donal McMullan
This section of the documentation might be what you're looking for: https://twistedmatrix.com/documents/current/web/howto/web-in-60/asynchronous.html If the tcp request to your upstream server is using some blocking (non-twisted) API, you could look into deferToThread. On Wed, 22 Apr 2020 at 17:1

Re: [Twisted-Python] Drop support for Python 3.4?

2019-03-28 Thread Donal McMullan
Twisted on pypy is important for us. We don't care about 3.4 support at all. Thanks DJM On Wed, 27 Mar 2019 at 20:55, Tobias Oberstein < tobias.oberst...@crossbario.com> wrote: > > Python 3.5 is still the default python3 version in Debian stable, so > > updating beyond that might make it more c

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

2019-03-25 Thread Donal McMullan
Hi Amber - Notwithstanding the fact that VFX/Anim will be stuck on PY2 for a few more years, this all sounds very reasonable. None of the proposed timelines would cause problems for my team. Many thanks DJM On Mon, 25 Mar 2019 at 10:15, Amber Brown wrote: > Hi everyone, > > Since the Python 2

Re: [Twisted-Python] twisted.web with dynamic + static content

2018-10-30 Thread Donal McMullan
Try replacing: isLeaf = True with isLeaf = False On Tue, 30 Oct 2018 at 21:32, Jeff Grimmett wrote: > I'm sure I'm overlooking something obvious here but I just can't get my > head around it. > > Here's the setup: twisted.web server that generates dynamic content. Child > that serves up static

Re: [Twisted-Python] Twisted 16.3.0 Prerelease 2 Announcement

2016-07-09 Thread Donal McMullan
Works for me with txacme and a lets: cert IIRC, when I was trying to use a self signed cert on my local network I got the ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY error. DJM On 9 July 2016 at 18:30, Paweł Miech wrote: > Thanks for fixing this. > > Did anyone actually manage to make HTTP2 in Twis

Re: [Twisted-Python] password reset not working?

2016-03-07 Thread Donal McMullan
Thanks Glyph - Hawkie was good enough to sort me out already :) DJM > On 7/03/2016, at 2:34 PM, Glyph Lefkowitz wrote: > > >> On Mar 6, 2016, at 12:51 PM, Donal McMullan wrote: >> >> I just reset my password at https://twistedmatrix.com/trac/reset_password a

[Twisted-Python] password reset not working?

2016-03-06 Thread Donal McMullan
I just reset my password at https://twistedmatrix.com/trac/reset_password a couple of times. In both cases the new password that was sent to me is rejected when I try to log in. Is this supposed to work? I only found the path to the reset_password form by searching the Trac docs. I'm not sure it's

[Twisted-Python] modal dialogs with the qt4reactor?

2013-05-15 Thread Donal McMullan
In a 2006 email, Ed Suominen links to two copies of "a non-blocking modal dialog, immediately obtaining a deferred to the user's eventual input." http://twistedmatrix.com/pipermail/twisted-python/2006-September/014077.html I'd love to know how to do this, but both sites are unreachable. The inter

[Twisted-Python] Weta Digital is hiring

2013-03-29 Thread Donal McMullan
http://www.wetafx.co.nz/recruitment-form.php?job-title=Production%20Engineer&form_type=softdev<http://www-ext.wetafx.co.nz/recruitment-form.php?job-title=Production%20Engineer&form_type=softdev> Thank you Donal McMullan Senior Production Engineer Weta Digital http://www.wetafx.co.nz

[Twisted-Python] libusb-1 file descriptors

2012-02-11 Thread Donal McMullan
I'm trying to integrate Twisted with libusb-1 The libusb-1 Python wrapper offers a USBPoller class to "allow integration of USB event polling in a file-descriptor monitoring event loop." The class expects to receive a 'poller' object, again quoting from the documentation: poller is a polling

Re: [Twisted-Python] data dispatch on massive connection counts

2011-11-14 Thread Donal McMullan
What does resource.getrlimit(resource.RLIMIT_OFILE) return? The Python docs say: resource.RLIMIT_OFILE The BSD name for RLIMIT_NOFILE. D On 15 November 2011 03:57, Tobias Oberstein wrote: >> > 2) Too many files. >> > Is there another limit specifically for files, and/or something tunable in

Re: [Twisted-Python] Ideas on limiting/throttling spawnProcess

2011-10-28 Thread Donal McMullan
I think twisted.internet.defer.DeferredSemaphore is designed for this. John Paul Calderone answers a similar question in detail: http://stackoverflow.com/questions/2861858/queue-remote-calls-to-a-python-twisted-perspective-broker Donal McMullan On 29/10/2011, at 11:21 AM, Daryl Herzmann wrote

Re: [Twisted-Python] how to implement sleep?

2010-09-19 Thread Donal McMullan
except: l_attempts += 1 yield reactor.callLater(3, self.work) Total guess Donal On 20/09/2010, at 12:04 AM, ruslan usifov wrote: > Hello > > Twisted is great, but how cant i emulate sleep behaviour in syested. I know > that exists callLater, but how to use it in yield scenario, like

Re: [Twisted-Python] OpenStack uses Twisted

2010-07-30 Thread Donal McMullan
Hi Alvin - I understand they've been using both Tornado and Twisted... did they elaborate on their decision to remove Tornado? Will the features supported by Tornado be reimplemented with Twisted? Thanks D On 31 July 2010 16:56, Alvin Wang wrote: > FYI - I went to a presentation on Nova/OpenSt

Re: [Twisted-Python] Looking for Twisted programmers at Fluidinfo

2010-05-27 Thread Donal McMullan
Congratulations on the funding! On 28 May 2010 12:56, Terry Jones wrote: > Apologies for a job posting, but we're looking to hire Twisted people at > Fluidinfo (http://fluidinfo.com) . We wrote FluidDB using Twisted from top > to bottom. We love Twisted. In fact, we closed a funding deal a week

Re: [Twisted-Python] listenTCP in a TAC

2010-05-11 Thread Donal McMullan
On 12 May 2010 01:02, Itamar Turner-Trauring wrote: > On Wed, 2010-05-12 at 00:17 +1200, Donal McMullan wrote: > >> I don't really grok the TAC thing yet, or why there's a different >> method for spawning servers within an Application. Is my listenTCP >> app

Re: [Twisted-Python] listenTCP in a TAC

2010-05-11 Thread Donal McMullan
i/twisted.application.service.Service.html#disownServiceParent > > > On Tue, May 11, 2010 at 5:47 PM, Donal McMullan > wrote: >> >> I've got a server application that listens on a port, and when clients >> connect, spawns another TCP service on a random port that can live >>

[Twisted-Python] listenTCP in a TAC

2010-05-11 Thread Donal McMullan
I've got a server application that listens on a port, and when clients connect, spawns another TCP service on a random port that can live from a few seconds, up to a day or two. I had some problems getting this to work with twisted.application.internet.TCPServer (my services wouldn't stop listenin

Re: [Twisted-Python] FUSE

2010-04-05 Thread Donal McMullan
Thanks for your answers - great to have some options! Donal On 5 April 2010 01:38, Pavel Pergamenshchik wrote: > On Sun, Apr 4, 2010 at 4:21 AM, Donal McMullan > wrote: >> I'm interested in doing some FUSE stuff with Twisted, mostly to >> prototype some ideas fo

[Twisted-Python] FUSE

2010-04-03 Thread Donal McMullan
I'm interested in doing some FUSE stuff with Twisted, mostly to prototype some ideas for profiling. Can anyone expand on Glyph's comment [1]: 8< - - - - - - - - - - - - - - - - - - - - - - - - - - - - The Python FUSE bindings obscure the issue because, unlike the C libfuse, they assume that your f

Re: [Twisted-Python] Noob alert - Looking for a framework for creating a long polling service

2010-03-31 Thread Donal McMullan
There's some simple sample code here: http://zenmachine.wordpress.com/2009/09/19/twisted-and-comet-comet-in-60-seconds/ The formatting's off, but otherwise it's a succinct demo of the kind of functionality you may be looking for. Cheers D On 1 April 2010 09:58, sstein...@gmail.com wrote: > >

Re: [Twisted-Python] Many connections and TIME_WAIT

2010-02-21 Thread Donal McMullan
I've been meaning to update this for a while - it turned out to be caused by a bug in my code. X-o Sorry guys - & thanks for helping me work it out. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailma

[Twisted-Python] Many connections and TIME_WAIT

2010-01-26 Thread Donal McMullan
I've been prototyping a client that connects to thousands of servers and calls some method. It's not real important to me at this stage whether that's via xmlrpc, perspective broker, or something else. What seems to happen on the client machine is that each network connection that gets opened and