Re: [Twisted-Python] twisted.logger and log filtering in twistd plugin

2016-02-01 Thread Louis D. Burr
Hi Patryk, > On Feb 1, 2016, at 11:12 AM, Patryk Ściborek wrote: > > On Mon, Feb 1, 2016 at 3:52 PM, Louis D. Burr <mailto:ldanielb...@me.com>> wrote: > > Best bet is to look into the —logger parameter which you can use to pass a > custom logger to twistd. > &

Re: [Twisted-Python] twisted.logger and log filtering in twistd plugin

2016-02-01 Thread Louis D. Burr
Hi Patryk, > On Feb 1, 2016, at 8:45 AM, Patryk Ściborek wrote: > > Hi Guys! > > I'm using twisted.logger in my new app. I'm running it as a twistd plugin and > I don't know how to enable log message filtering. I know that twistd still > uses twisted.python.log but I have to disable debug me

Re: [Twisted-Python] Streaming HTTP

2015-11-16 Thread Louis D. Burr
Hi Cory, > On Nov 13, 2015, at 6:36 AM, Cory Benfield wrote: > > Folks, > > # Problem Statement > > Thanks for your feedback on my HTTP/2 questions. I’ve started work > implementing a spike of a HTTP/2 protocol for twisted.web. I’m aiming to have > something that works in at least some cases

Re: [Twisted-Python] Twisted Web at 630k reqs/sec

2015-11-10 Thread Louis D. Burr
Hi Tobias, > On Nov 10, 2015, at 4:54 PM, Tobias Oberstein > wrote: > > Hi, > > maybe it's of interest how far it's possible to drive Twisted Web on modern > multi-core CPUs. > > Here are 2 data points from measuring: > > * 627990 HTTP requests/s at 360 us avg latency > * 12.6 GB/s HTTP rep

Re: [Twisted-Python] Trapping exceptions in Deferred

2015-05-12 Thread Louis D. Burr
Hi Mashiat, > On May 12, 2015, at 11:48 AM, Mashiat Sarker Shakkhar > wrote: > [...] > Alright. Below you can find a code snippet that is similar to my actual code. > But my question is a little more generic - how do I catch exceptions that are > encapsulated in a failure? If the actual excep

Re: [Twisted-Python] Trapping exceptions in Deferred

2015-05-12 Thread Louis D. Burr
Hi Mashiat, > On May 12, 2015, at 9:53 AM, Mashiat Sarker Shakkhar > wrote: > > Hi > > If I want to trap a certain type of exception in a deferred call, how do I > specify it? For example, I see a failure like this: > > [HTTP11ClientProtocol (TLSMemoryBIOProtocol),client] > [>] > [H

Re: [Twisted-Python] attribute error when I am trying to make one factory to send data to another

2015-04-28 Thread Louis D. Burr
Hi Jessica, > On Apr 28, 2015, at 10:14 AM, Jessica Tsui wrote: SNIP > exceptions.AttributeError: MultiEcho instance has no attribute ‘factory' SNIP > MultiEcho().dataReceived(sendermessage) Here you create an instance of the protocol directly, i.e., without having instantiated a MutilEchoFacto

Re: [Twisted-Python] custom FTP server is blocking

2015-03-19 Thread Louis D. Burr
Hi Paul, > On Mar 19, 2015, at 1:18 PM, Paul Wiseman wrote: > > I have some blocking going on in a custom twisted ftp server and I'm > trying to pin point what exactly is doing it. > > I think this line in openForReading on my FTPShell object could be the > culprit: > > _FileReader(urllib2.ur

Re: [Twisted-Python] twisted echo ssl client with .p12

2015-03-19 Thread Louis D. Burr
Hi Timothy, > On Mar 19, 2015, at 9:56 AM, Timothy Gallagher > wrote: > > Hello all, > I have a project that requires client server with ssl/tls including client > certificate authentication. Also the a requirement is that the client needs > to use a .p12 file to house its keys. I have the

Re: [Twisted-Python] Recommended daemon monitoring tools for ubuntu

2013-05-16 Thread Louis D. Burr
On May 16, 2013, at 12:34 PM, Justin Venus wrote:IMO monit is pretty easy to setup and probably your best bet.  However you could get puppet, chef, or cfengine to start processes for you.  If you are feeling adventurous, you could set up something like apache mesos to keep your tasks running.Justi