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

Re: [Twisted-Python] Password hash for Perspective Brokers

2012-08-02 Thread Louis
, given that it can be computed given the username and hashed password. I drew a sequence diagram in the bug report [1], which can help to undersand this part Cheers, Louis [1] http://twistedmatrix.com/trac/ticket/4398#comment:5 [2] http://twistedmatrix.com/pipermail/twisted-pyth

[Twisted-Python] Password hash for Perspective Brokers

2012-07-26 Thread Louis
he relevant pieces of code to do so. Of course, I would also write the corresponding tests. Some ideas or comments ? Cheers, Louis [1] http://markmail.org/message/wlzmeesplsriym2a [2] http://twistedmatrix.com/documents/current/api/twisted.spread.pb.PBServerFactory.html [3

Re: [Twisted-Python] Synchronous calls using Twisted?

2012-05-18 Thread Louis
to mix Django and Twisted the way I want it to be mixed ? Regards, Louis [1] http://www.clemesha.org/blog/Django-on-Twisted-using-latest-twisted-web-wsgi/ > On Wed, May 16, 2012 at 6:58 PM, Louis wrote: >> Hello, >> I am writing an application,

[Twisted-Python] Synchronous calls using Twisted?

2012-05-16 Thread Louis
he beauty of Twisted." d) "Stop it now. You have clearly misunderstood Twisted. You are wasting your time and ours." e) Any other... Do you think Twisted is the right tool for my use case, or am I doing an ugly hack to do what I want, which means I should rather use another tool?

Re: [Twisted-Python] deciding to use twisted or not

2009-09-06 Thread Martin-Louis Bright
oing my work >> using the process protocol and tail -f but needed the software to work >> on 3 versions of linux and os x.     The read() way of doing it was >> ultimately the most cross platform way I could come up with.  Good >> luck. >> >> -rob >> >> >

[Twisted-Python] twistd plugin or .tac file?

2009-09-01 Thread Martin-Louis Bright
hi! Which is the recommended or preferred way to deploy an app that will leverage twistd: designing the app as a twistd plugin or creating a Service and using a .tac file? Also, if you need to expose your functionality as a Service to properly use the twisted application framework, how do you achi

Re: [Twisted-Python] deciding to use twisted or not

2009-09-01 Thread Martin-Louis Bright
PyInotify only allows you to detect file changes, leaving you with the task of asynchronously sending http requests. -martin On Thu, Aug 27, 2009 at 12:19 PM, Mikhail wrote: > Martin-Louis Bright gmail.com> writes: > > > > > > > I am using linux, and I want the da

Re: [Twisted-Python] deciding to use twisted or not

2009-08-27 Thread Martin-Louis Bright
I am using linux, and I want the daemon to be as responsive as possible to log events, so I think I would rather have it sit on the same box as where the log is produced. (Perhaps I'm wrong about this?) So I'm going to try Cary's ProcessProtocol approach, and if that doesn't work, Glyph's LoopingCa

Re: [Twisted-Python] deciding to use twisted or not

2009-08-26 Thread Martin-Louis Bright
Thanks! Your advice is much appreciated. martin On Wed, Aug 26, 2009 at 10:08 PM, Glyph Lefkowitz wrote: > On Wed, Aug 26, 2009 at 9:54 PM, Cary Hull wrote: > >> It would certainly be nice if Twisted supported async file io, but in this >> case wouldn't a ProcessProtocol around 'tail -f' be a g

[Twisted-Python] deciding to use twisted or not

2009-08-26 Thread Martin-Louis Bright
Hi! I would like to write a small daemon that monitors (tails) a server log, parses the entries and sends HTTP requests based on some of those entries. I would like it if the reading of the log file and the sending of http requests were asynchronous. Should I use twisted for this? Or is twisted ov