Re: [Twisted-Python] twisted.web.xmlrpc.Proxy using the new HTTP 1.1 client?

2015-12-17 Thread Glyph Lefkowitz
> On Dec 17, 2015, at 6:59 AM, Michael Schlenker wrote: > > Hi, > > looking at the xmlrpc client code, it looks like it still does HTTP 1.0 > only. > > Did anyone try to hook it up to the new HTTPConnectionPool and > HTTP11ClientProtocol in twisted.web.client? > > How hard should it be to do

[Twisted-Python] twisted.web.xmlrpc.Proxy using the new HTTP 1.1 client?

2015-12-17 Thread Michael Schlenker
Hi, looking at the xmlrpc client code, it looks like it still does HTTP 1.0 only. Did anyone try to hook it up to the new HTTPConnectionPool and HTTP11ClientProtocol in twisted.web.client? How hard should it be to do that, any pointers on how to do a conversion? I'm mostly interested in the per

Re: [Twisted-Python] Waiting for transports to close

2015-12-17 Thread Glyph Lefkowitz
> On Dec 17, 2015, at 4:56 AM, Chris Norman > wrote: > > Hi, > It's a MUD server, so players type in commands and receive textual responses. > > One of the admin commands is the ability to shutdown the server (or CTRL-C > might be pressed on the console). I'd like this action to notify all >

Re: [Twisted-Python] Waiting for transports to close

2015-12-17 Thread Chris Norman
Hi, It's a MUD server, so players type in commands and receive textual responses. One of the admin commands is the ability to shutdown the server (or CTRL-C might be pressed on the console). I'd like this action to notify all connected transports that the server is going down for shutdown, so

Re: [Twisted-Python] Waiting for transports to close

2015-12-17 Thread Glyph Lefkowitz
> On Dec 16, 2015, at 9:25 AM, Chris Norman > wrote: > > Hi all, > I'm writing a MUD server, and I want a way for transports to be notified ofa > shutdown before being disconnected, and the reactor being stopped. > > I've tried: > > for t in transports: > t.write('Shutting down.\r\n') > t.lo

Re: [Twisted-Python] What are the relationships between twisted.cred.portal.IRealm, Portal and avatar

2015-12-17 Thread Glyph Lefkowitz
> On Dec 13, 2015, at 7:50 AM, Wang Yan wrote: > > I'm trying to use Twisted's HTTP basic authentication to control access to > some protected resources. > > According to some articles, it is necessary to use three important concepts: > Realm, Portal and avatar. Now I'm wondering if the Realm

Re: [Twisted-Python] having 'from_' factory method with a deferred in it.

2015-12-17 Thread Glyph Lefkowitz
> On Dec 9, 2015, at 4:17 AM, Sinan Nalkaya wrote: > > Hi Everyone, > > I am developing a tiny library where you can use your gpio pins (over sysfs) > in twisted way. You may find more about, on https://github.com/sardok/txgpio > . > > I am facing with a rac

Re: [Twisted-Python] asynchronous response

2015-12-17 Thread Terry Jones
Hi Kevin I found it extremely beneficial to read the Twisted sources, in particular twisted.internet.defer. In your case, see https://github.com/twisted/twisted/blob/trunk/twisted/internet/task.py#L821 One nice thing that happens when you read the source is that you see quite a number of API meth

Re: [Twisted-Python] asynchronous response

2015-12-17 Thread Kevin Mcintyre
holy moly - you're right! This fool will sleep so much better...a million thanks. On Thu, Dec 17, 2015 at 12:09 AM, Amber "Hawkie" Brown < hawk...@atleastfornow.net> wrote: > > > On 17 Dec 2015, at 08:11, Kevin Mcintyre wrote: > > > > Hey - I'm confused, so nothing new :) ...but I'm running at

Re: [Twisted-Python] asynchronous response

2015-12-17 Thread Amber "Hawkie" Brown
> On 17 Dec 2015, at 08:11, Kevin Mcintyre wrote: > > Hey - I'm confused, so nothing new :) ...but I'm running at this example and > I'm scratching my head. > > http://twistedmatrix.com/documents/current/web/howto/web-in-60/asynchronous-deferred.html > > I would've thought 2 requests could be