[Twisted-Python] proto_helpers.StringTransport & TLS

2017-03-03 Thread Jason J. W. Williams
Hey Guys, We've been using proto_helpers.StringTransport for awhile in testing and recently added TLS support we wanted to test as well. Has anyone subclassed StringTransport to add startTLS support? We added the _TLSConnectionMixin, _TLSClientMixin mixins to a new StringTransportTLS subclass, bu

Re: [Twisted-Python] Travis-CI integration work

2016-06-02 Thread Jason J. W. Williams
That's awesome. Happy to see this. -J On Thu, Jun 2, 2016 at 5:10 AM, Adi Roiban wrote: > Hi, > > I just want to let you know that we are almost done with the work of > integrating Travis-CI with Twisted GitHub PRs. > > The ticket is here https://twistedmatrix.com/trac/ticket/7229 > > If you ha

[Twisted-Python] Kafka Client

2016-01-18 Thread Jason J. W. Williams
Hey, Is anyone use Kafka successfully with Twisted? So far it looks like there's only synchronous python clients: https://github.com/Parsely/pykafka https://github.com/dpkp/kafka-python Any input is greatly appreciated. -J ___ Twisted-Python mailing l

Re: [Twisted-Python] Shiji - JSON REST API Framework built with Twisted Web

2016-01-07 Thread Jason J. W. Williams
> > Thanks for this announcement, and thanks for open sourcing it! Always > good to have new developments in the ecosystem :-D. > > -glyph > > My pleasure! It's been on my shortlist for awhile. :) -J ___ Twisted-Python mailing list Twisted-Python@twiste

[Twisted-Python] Shiji - JSON REST API Framework built with Twisted Web

2016-01-06 Thread Jason J. W. Williams
HI Guys, In case its of help to anyone, my company is open sourcing the framework we built using Twisted Web to help us build & serve JSON REST APIs: https://github.com/williamsjj/shiji We've been using it successfully for a few years and built it to solve a bunch of repetitive tasks for us: *

Re: [Twisted-Python] Silverberg CQL Driver

2015-07-02 Thread Jason J. W. Williams
ious if y'all ran without authentication and if you thought this might be a 2.1.x compatibility issue? Thank you in advance for any advice. -J On Thu, Jan 1, 2015 at 7:51 AM, James Broadhead wrote: > On 29 December 2014 at 19:11, Jason J. W. Williams > wrote: >> >>

Re: [Twisted-Python] Proposal -- Code of Conduct

2015-06-23 Thread Jason J. W. Williams
Apologies...editing while on a call. On Tue, Jun 23, 2015 at 12:51 PM, Steve Waterbury wrote: > On 06/23/2015 03:31 PM, Jason J. W. Williams wrote: >> >> On Tue, Jun 23, 2015 at 11:59 AM, David Reid wrote: >>> >>> I'm going to come out strongly aga

Re: [Twisted-Python] Proposal -- Code of Conduct

2015-06-23 Thread Jason J. W. Williams
On Tue, Jun 23, 2015 at 11:59 AM, David Reid wrote: > I'm going to come out strongly against using the PSF CoC. It is woefully > inadequate, it includes no mechanisms for reporting, and as any PSF member > who has been on certain mailing lists knows it is actually completely > unenforceable. Enfo

Re: [Twisted-Python] Proposal -- Code of Conduct

2015-06-23 Thread Jason J. W. Williams
On Tue, Jun 23, 2015 at 11:47 AM, Stephen Thorne wrote: > http://bit.ly/psf-coc I like the PSF code of conduct. It's readable, and covers the bases with an emphasis on civility and respect. -J ___ Twisted-Python mailing list Twisted-Python@twistedmatr

Re: [Twisted-Python] Specifying ciphers in ssl.optionsForClientTLS

2015-02-16 Thread Jason J. W. Williams
> As the documentation for extraCertificateOptions says, if you need to use it > it's a bug in the interface. As such, please file it :-). This escape-hatch > was presented specifically so we could discover which features of that > interface were really necessary customizations and which were

Re: [Twisted-Python] Specifying ciphers in ssl.optionsForClientTLS

2015-02-16 Thread Jason J. W. Williams
> Some browsers won’t — Firefox refuses to use RC4 :) I saw that on Firefox's wiki, but in reality Firefox 35 still does allow RC4: http://www.screencast.com/t/AuMRylAV -J ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedm

Re: [Twisted-Python] Specifying ciphers in ssl.optionsForClientTLS

2015-02-16 Thread Jason J. W. Williams
> As the documentation for extraCertificateOptions says, if you need to use it > it's a bug in the interface. As such, please file it :-). This escape-hatch > was presented specifically so we could discover which features of that > interface were really necessary customizations and which were

[Twisted-Python] Specifying ciphers in ssl.optionsForClientTLS

2015-02-16 Thread Jason J. W. Williams
Hi, I need to loosen up the default cipher list to allow RC4 (some sites our customers use like myaccounts.socalgas.com still use it). I was going to pass the following dict into the extraCertificateOptions argument of ssl.optionsForClientTLS, but was curious if there as a better way: {"acceptab

Re: [Twisted-Python] Silverberg CQL Driver

2014-12-29 Thread Jason J. W. Williams
use problems with down and > flaky seed hosts, so ymmv. > > It's available here: https://github.com/tweetdeck/Telephus > > On 3 December 2014 at 20:03, Jason J. W. Williams > wrote: >> >> Is anyone using the silverberg CQL (Cassandra) library for Twisted in >>

Re: [Twisted-Python] Silverberg CQL Driver

2014-12-29 Thread Jason J. W. Williams
silverberg client. > > I’ve not personally touched that code but I know we've been using it in > production for about a year. > > -radix > > > On Dec 3, 2014, at 2:03 PM, Jason J. W. Williams < > jasonjwwilli...@gmail.com> wrote: > > Is anyone using the silv

[Twisted-Python] Silverberg CQL Driver

2014-12-03 Thread Jason J. W. Williams
Is anyone using the silverberg CQL (Cassandra) library for Twisted in production? Just curious what people's experience with it is, since it appears to be the most recently updated Twisted/CQL project. -J ___ Twisted-Python mailing list Twisted-Python@tw

[Twisted-Python] Twisted 14.0.2 & edns client subnet

2014-11-21 Thread Jason J. W. Williams
Has anyone used the support for EDNS option information in the 14.0.2 twisted.names client to transmit EDNS client subnet information in upstream DNS queries? Any advice/pointers would be greatly appreciated. -J ___ Twisted-Python mailing list Twisted-Py

[Twisted-Python] OSX 10.9 Trial ZipPath issue

2014-06-25 Thread Jason J. W. Williams
Since upgrading to OSX 10.9 I seem to have this issue when running trial (tried it with Twisted 13.0.0, 13.2.0 and 14.0.0): Unexpected error while writing cache file Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/twisted/scripts/trial.py", line 472, in postOption

Re: [Twisted-Python] Twisted Users on Windows XP

2013-10-23 Thread Jason J. W. Williams
> > Not according to the statistics that Valve themselves publish about Steam. > Did you read the link in the original email? > Yeah, I didn't see a correlation though of what kind of hardware those folks were running. They could be running ancient stuff and are prepared to deal with the conseque

Re: [Twisted-Python] Twisted Users on Windows XP

2013-10-23 Thread Jason J. W. Williams
If you're still running XP isn't it pretty unlikely you have hardware modern enough to power a Steam game in the first place? -J Sent via iPhone Is your email Premiere? > On Oct 23, 2013, at 10:51, Glyph wrote: > > >> On Oct 23, 2013, at 7:07 AM, HawkOwl wrote: >> >> Hi everyone, >> >> I

[Twisted-Python] Weird SSL/TLS issue

2012-12-27 Thread Jason J. W. Williams
We have an application that uses Twisted Web to listen for an API call and when it receives it, the app then connects over SMTP to the specified mail server IP and validates whether the indicated user exists. The app has been running without issue or modification for close to 2 years (uses Twisted

[Twisted-Python] Multiple transmissions via SMTPClient

2012-05-23 Thread Jason J. W. Williams
Hi Guys, I've been banging my head on this for a few days so I thought I'd ping folks here. Been trying to modify twisted.mail.smtp.ESMTPClient to allow the sending of more than one message over a single TCP connection. I've changed the behavior of smtpState_data() so that it sets the next state

Re: [Twisted-Python] SURVEY: Have you submitted a patch to Twisted and it never got in?

2011-07-01 Thread Jason J. W. Williams
On Fri, Jul 1, 2011 at 12:59 PM, Itamar Turner-Trauring wrote: > > It would be far simpler to setup my DVCS to track JP's remote copy of my > > ticket's branch...then simply pull from that remote...make my changes and > > request he pull from me when he's ready to review. Automates the whole > >

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Jason J. W. Williams
> > I did not say contributing shouldn't be easier; I said getting more > contributions is pointless (and annoying to contributors!) if we can't > manage to get them incorporated into trunk. If DVCS will make code easier > to incorporate, by encouraging contributors to iterate on patches, then we >

Re: [Twisted-Python] SURVEY: Have you submitted a patch to Twisted and it never got in?

2011-07-01 Thread Jason J. W. Williams
Sent via iPhone Is your email Premiere? On Jul 1, 2011, at 11:41, Glyph Lefkowitz wrote: > > Can you be more specific, please? What's painful? Re-syncing whatever changes JP (just as an example of a reviewer) has made back into your local repo from SVN...which due to SVN's weakness on bra

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Jason J. W. Williams
> Although, the other questions raised in this thread, about what parts of our > workflow are problematic, are worth talking about separately. Moving from a manual patch-based process to a DVCS where branching is cheap and the workflow can be moved to push/pull would be a huge step in the right

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Jason J. W. Williams
On Jul 1, 2011, at 7:44, Itamar Turner-Trauring wrote: > I'm not sure getting more patches should be our main goal, for now. > (It's a good *long term* goal!). > We have a large number of uncommitted third-party patches in tickets. 2 of those are mine. They're almost to the point of being acce

[Twisted-Python] Twisted featured on The Changelog

2011-05-03 Thread Jason J. W. Williams
Hey Guys, Not sure if anyone listens to The Changelog podcast, but the episode this week is a full feature on Twisted interviewing Glyph. :) Really good PR for us. http://thechangelog.com/post/5160421440/episode-0-5-8-twisted-with-glyph-lefkowitz ...and Glyph did a fantastic job! Definitely one

Re: [Twisted-Python] twisted.web.error.Error & BaseException.message deprecation

2011-03-11 Thread Jason J. W. Williams
Pleasure. :) -J On Fri, Mar 11, 2011 at 2:28 PM, Glyph Lefkowitz wrote: > > On Mar 11, 2011, at 12:52 PM, Jason J. W. Williams wrote: > >> Hi Glyph, >> >> I re-opened 4456 and attached a patch. I think that's this issue. The only >> other one I found in

Re: [Twisted-Python] twisted.web.error.Error & BaseException.message deprecation

2011-03-11 Thread Jason J. W. Williams
2:25 AM, Jason J. W. Williams wrote: > >> Setting it as a class level attribute seems to suppress it: >> >>>>> class TestError(Exception): >> ... message = "" >> ... >> ... def __init__(self, msg): >> ...self.message = ms

Re: [Twisted-Python] twisted.web.error.Error & BaseException.message deprecation

2011-03-10 Thread Jason J. W. Williams
ket if one's not already. -J On Thu, Mar 10, 2011 at 10:12 PM, Glyph Lefkowitz wrote: > On Mar 10, 2011, at 5:45 PM, Jason J. W. Williams wrote: > >> Hi Guys, >> >> Been seeing this error for a long time and finally getting off my bum >> to see ab

Re: [Twisted-Python] Authentication & Access Control system for web services

2011-03-10 Thread Jason J. W. Williams
I believe this implements OAuth 2 for Twisted using Twisted Cred: https://github.com/simplegeo/txoauth -J On Thu, Mar 10, 2011 at 2:16 PM, George Pauly wrote: > Allen, > > In my very limited experience with Twisted, > > On Thu, 2011-03-10 at 14:01 -0600, Allen Bierbaum wrote: >> I have been loo

[Twisted-Python] twisted.web.error.Error & BaseException.message deprecation

2011-03-10 Thread Jason J. W. Williams
Hi Guys, Been seeing this error for a long time and finally getting off my bum to see about fixing it: twisted/web/error.py:53: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 It looks like the issue is the "self.message = message" assignment in __init__: https://g

Re: [Twisted-Python] Agent and "Cannot assign requested address"

2011-03-10 Thread Jason J. W. Williams
n the hopes ticket 3420 gets completed. :) -J On Thu, Mar 10, 2011 at 3:31 AM, akira <4kir4...@gmail.com> wrote: > "Jason J. W. Williams" writes: > >> Actually, I think the TIME_WAIT is the problem. It's what I see in >> netstat, and the Agent requests are

[Twisted-Python] txRiakIdx: Twisted Riak library implementing transparent indexing

2011-03-08 Thread Jason J. W. Williams
Hi Guys, I've put together a library for my company's needs to implement secondary indexes in Riak transparently. It's built on top of Ray Cote's great txRIak library, and should drop in transparently anywhere txRiak is used. We've open sourced it in case it's useful for anyone else: https://gith

[Twisted-Python] Paisley 0.3 Released

2011-03-08 Thread Jason J. W. Williams
Hello, We wanted to let everyone know that we've released version 0.3 of Paisley (the CouchDB client for Twisted Python). Among the new features: Enhancements * Added CouchDB authentication support (supply username and password args when instantiating) * Re-factored underlying HTTP transpo

Re: [Twisted-Python] Authentication & Access Control system for web services

2011-03-07 Thread Jason J. W. Williams
Hi Allen, There's Twisted Cred you could build something on. I've also got a framework my company built internally on top of Twisted Web that I've been planning to open source once we make the unit tests more robust. Would be happy to share it with you. You decorate the render_ method with the

Re: [Twisted-Python] Agent and "Cannot assign requested address"

2011-03-04 Thread Jason J. W. Williams
Yeah. Actually that's the reason I refactored txRiak to use Agent instead of HTTPClient, so it could take advantage of pooling when that comes down the pike for Agent (well that and HTTP 1.1 support). I guess I'll just throttle down the load rate. Thank you for your help. -J On Fri, Mar 4, 2011

Re: [Twisted-Python] Agent and "Cannot assign requested address"

2011-03-04 Thread Jason J. W. Williams
Actually, I think the TIME_WAIT is the problem. It's what I see in netstat, and the Agent requests are fired sequentially via yield inside a for loop (inlineCallbacks). So they shouldn't be running in parallel. The use case here is loading a Riak server with keys to prepare for a test. There's

[Twisted-Python] Agent and "Cannot assign requested address"

2011-03-03 Thread Jason J. W. Williams
Hi All, I've got a situation where I'm using t.w.c.Agent to make 100,000 POST request against a server. Each time a new Agent instance is built and the request is sent using it. After about 20,000 requests, I get this error: Failure: twisted.internet.error.ConnectError: An error occurred while co

Re: [Twisted-Python] Task-based documentation started

2011-02-01 Thread Jason J. W. Williams
On Jan 31, 2011, at 11:41 AM, Tom Davis wrote: > > Thoughts? Overall I think the layout and structure is a big improvement over the current Twisted documentation. It's easier to navigate and grok where you want to go. While the content of the web tutorial is thin, I think Jean-Paul's Twisted Web i

Re: [Twisted-Python] Names DNS Client too chatty

2011-01-25 Thread Jason J. W. Williams
On Mon, Jan 24, 2011 at 10:01 PM, Glyph Lefkowitz wrote: > While I agree with the general sentiment (incremental improvements that can > be done now are pretty much always better than gigantic overhauls that have > to be put off until later) the current logging system is already pretty much > des

Re: [Twisted-Python] HTTPClient handling LF only servers

2011-01-25 Thread Jason J. W. Williams
>> >>Can we go ahead and close 2842 in favor of 4814?  We have too many old >>tickets floating around... > > #4814 is already closed.  If the #2842 description is confusing, then > feel free to update it to be more clear. :) > > We don't close old tickets as duplicates of new tickets, though.  That

[Twisted-Python] HTTPClient handling LF only servers

2011-01-25 Thread Jason J. W. Williams
Hi Y'all, Certain servers (notably Hacker News) break HTTPClient because they use LF instead of CRLF to terminate header lines. I've uploaded a patch with tests to ticket 4814 (merged into ticket 2842). I'd appreciate a review and some discussion about integrating it. -J Sent via iPhone Is

Re: [Twisted-Python] Names DNS Client too chatty

2011-01-24 Thread Jason J. W. Williams
In my opinion this has been a problem for a very long time, and it would be better to have a correction that fits the majority of cases with a small code change now rather than wait for the perfect log system. These changes don't preclude a better logger and way of filtering these out in the future

Re: [Twisted-Python] Names DNS Client too chatty

2011-01-24 Thread Jason J. W. Williams
If there's no objections the rest of today, I'll make sure the 4021 patch still applies and see what could be done as a test. -J On Mon, Jan 24, 2011 at 3:40 AM, Phil Mayers wrote: > On 01/24/2011 02:43 AM, Glyph Lefkowitz wrote: >> >> Personally I'd say 'false'.  This is technically a change in

Re: [Twisted-Python] Names DNS Client too chatty

2011-01-23 Thread Jason J. W. Williams
On Sun, Jan 23, 2011 at 7:27 PM, Glyph Lefkowitz wrote: > > On Jan 23, 2011, at 9:21 PM, Jason J. W. Williams wrote: > > Would it be that bad to just use a noisy check to toggle these on and > off until a better logging system is available? > > No, that sounds like a fine sol

Re: [Twisted-Python] Names DNS Client too chatty

2011-01-23 Thread Jason J. W. Williams
On Sun, Jan 23, 2011 at 6:39 PM, Glyph Lefkowitz wrote: > Yes, logging in Twisted is a bit of a mess. > Almost all of these chatty little messages should not be logged to disk.  If > they're logged at all, they should be logged as purely structured data for > observers to analyze later, not as te

[Twisted-Python] Names DNS Client too chatty

2011-01-23 Thread Jason J. W. Williams
Hi Guys, I'd like to get ticket 4021 integrated in some fashion into Twisted. Currently, the Twisted Names client issues a "starting" and "stopping" log message on every resolution. It fills up the logs and makes seeing valuable log messages really difficult in the sea of DNS requests. 150,000

Re: [Twisted-Python] Twisted and PEP 3148 support

2011-01-10 Thread Jason J. W. Williams
Do futures support chaining? From a cursory read of PEP 3148 it doesn't look like they do. -J 2011/1/10 Alex Grönholm : > There has been some discussion over email between myself and several > Twisted developers regarding the possibility of adding support for PEP > 3148 futures and executors to T

Re: [Twisted-Python] getPage generates a traceback in abstract.py

2010-10-02 Thread Jason J. W. Williams
Wow I feel stupid. That would be me in the callback that gets fired when getPage completes. Originally I had written this to use web.client.Agent and that code was helping me to inspect the response for debugging. Thank you very much. -J On Sat, Oct 2, 2010 at 11:26 AM, wrote: > On 05:15 pm, ja

Re: [Twisted-Python] getPage generates a traceback in abstract.py

2010-10-02 Thread Jason J. W. Williams
Hi Ivan, This looks really strange. Could you add a print statement before > line 112 of abstract.py, to see what's in self._tempDataBuffer? > The conents of self._tempDataBuffer is indeed a list: ['HTTP/1.1 200 OK\r\n', 'Transfer-Encoding: chunked\r\n', '\r\n', '47\r\n', ['__add__', '__class_

[Twisted-Python] getPage generates a traceback in abstract.py

2010-10-01 Thread Jason J. W. Williams
I'm really pulling my hair out here. The code in question uses getPage: http://gist.github.com/607124 If I remove the postdata argument to getPage no problem (except the postdata is required by server I'm calling). However, no matter what I put in postdata, I get this: http://gist.github.com/607

Re: [Twisted-Python] adbapi MySQL read/write splitting

2010-09-01 Thread Jason J. W. Williams
2010, at 7:15, Itamar Turner-Trauring wrote: > On Tue, 2010-08-31 at 20:54 -0600, Jason J. W. Williams wrote: >> That's one way of handling it. Another way is to wrap the library so >> it does the splitting automatically. The advantage to the latter is >> not making mis

Re: [Twisted-Python] adbapi MySQL read/write splitting

2010-08-31 Thread Jason J. W. Williams
buting load across multiple database servers. I > think the guys from my former company updated the wrapper to use adbapi. > - Alvin > > On Wed, Sep 1, 2010 at 10:54 AM, Jason J. W. Williams > wrote: >> >> That's one way of handling it. Another way is to wrap t

Re: [Twisted-Python] adbapi MySQL read/write splitting

2010-08-31 Thread Jason J. W. Williams
to do the splitting, would wrapping MySQLdb be sufficient? Or would wrapping adbapi be the better path? -J On Tue, Aug 31, 2010 at 8:40 PM, Itamar Turner-Trauring wrote: > On Tue, 2010-08-31 at 20:36 -0600, Jason J. W. Williams wrote: >> Sending writes (e.g. INSERTs and UPDATEs) to a

Re: [Twisted-Python] adbapi MySQL read/write splitting

2010-08-31 Thread Jason J. W. Williams
Sending writes (e.g. INSERTs and UPDATEs) to a master MySQL server and reads (SELECTs) to a slave. -J On Tue, Aug 31, 2010 at 8:32 PM, Itamar Turner-Trauring wrote: > On Tue, 2010-08-31 at 15:17 -0600, Jason J. W. Williams wrote: >> Is anyone doing read/write splitting with adbapi? Lo

[Twisted-Python] adbapi MySQL read/write splitting

2010-08-31 Thread Jason J. W. Williams
Is anyone doing read/write splitting with adbapi? Looking for advice if anyone has tackled this before. Thank you in advance. -J ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-p

Re: [Twisted-Python] How to package a program that I'm running as twistd dmucs.py

2010-08-30 Thread Jason J. W. Williams
I've typically accomplished this with a BASH script packaged with the app or an init.d script. -J On Mon, Aug 30, 2010 at 9:51 AM, Victor Norman wrote: > I am nearing the end of developing my application and am thinking about how > to package it up.  I have been testing it by running it this way

Re: [Twisted-Python] Using cProfile instead of hotshot with twistd

2010-08-10 Thread Jason J. W. Williams
I'm not sure what's wrong then. Tried your command line and got nothing written. Tried it with 10.1 and same deal. I'll keep hacking at it. -J On Tue, Aug 10, 2010 at 3:20 PM, wrote: > On 08:55 pm, jasonjwwilli...@gmail.com wrote: >>This doesn't seem to work either. Also on 8.2.0. > > This work

Re: [Twisted-Python] Using cProfile instead of hotshot with twistd

2010-08-10 Thread Jason J. W. Williams
This doesn't seem to work either. Also on 8.2.0. -J On Fri, Aug 6, 2010 at 9:42 PM, Paul Goins wrote: > Add --savestats.  I'm on 8.2.0, but it probably should still work. > > - Paul Goins > > On 8/7/2010 8:20 AM, Jason J. W. Williams wrote: >> Hi, >> >

[Twisted-Python] Using cProfile instead of hotshot with twistd

2010-08-06 Thread Jason J. W. Williams
Hi, I'm having an issue using twistd with --profiler=cprofile. I was using hotshot, but there's a bug in loading big profile logs with it so I'm trying cProfile instead. The issue is that with --profiler=cprofile, the --profile= flag seems to be ignored. That is no profile file gets created. Any

Re: [Twisted-Python] OpenStack uses Twisted

2010-08-01 Thread Jason J. W. Williams
oing to have a tour of NASA before > the next meeting. > > Alvin > > On Sat, Jul 31, 2010 at 2:51 PM, Jason J. W. Williams > wrote: > Hey Alvin, > > Where on the launchpad did you find the preso? > > -J > > Sent via iPhone > > Is your e-mail Pr

Re: [Twisted-Python] OpenStack uses Twisted

2010-07-31 Thread Jason J. W. Williams
Hey Alvin, Where on the launchpad did you find the preso? -J Sent via iPhone Is your e-mail Premiere? On Jul 30, 2010, at 22:56, Alvin Wang wrote: > FYI - I went to a presentation on Nova/OpenStack > https://launchpad.net/nova > > They use Twisted and they are planning on taking out Tornado

Re: [Twisted-Python] SMTP Client Blocking Connects

2010-07-19 Thread Jason J. W. Williams
wrote: > > On Jul 12, 2010, at 8:51 PM, Jason J. W. Williams wrote: > > Are TCP connects in Twisted usually blocking? Noticing a behavior when > I've got several simultaneous SMTP client objects operating, where > when one of them hits a server that times out on the connect

Re: [Twisted-Python] SMTP Client Blocking Connects

2010-07-13 Thread Jason J. W. Williams
Hey Glyph, Thanks for responding so fast. Lemme code up a simple test that replicates what the code is doing and see if I can replicate it that way. -J On Mon, Jul 12, 2010 at 6:53 PM, Glyph Lefkowitz wrote: > > On Jul 12, 2010, at 8:51 PM, Jason J. W. Williams wrote: > > Are TCP

[Twisted-Python] SMTP Client Blocking Connects

2010-07-12 Thread Jason J. W. Williams
Hi Guys, Are TCP connects in Twisted usually blocking? Noticing a behavior when I've got several simultaneous SMTP client objects operating, where when one of them hits a server that times out on the connect...the program blocks until the connect times out. Everything else is working async/non-blo

[Twisted-Python] Congrats to ITA

2010-07-09 Thread Jason J. W. Williams
Just wanted to drop a note of congrats to ITA on their acquisition by Google. It'll be great to see Twisted in play at the Googleplex for travel. -J ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailma

Re: [Twisted-Python] Twisted Names too many open files...resolv.conf

2010-06-18 Thread Jason J. W. Williams
Hi Jean-Paul, As usual you're very right on more than one front: 1.) Using Resolver() directly is exactly the behavior we wanted. 2.) Running out of file descriptors was not because of the resolv.conf. #2 was because this box had an ancient version of Twisted (2.5.0) that never stopped the Resol

Re: [Twisted-Python] Multiple clients

2010-06-18 Thread Jason J. W. Williams
If you're not using twistd to launch your app you'll have to run reactor.run(). Otherwise, the eventloop won't ever start. In terms of exposing something like get_messages()...couldn't that issue the callLater with a very tiny value? Or issue the first connectTCP, which the others chained via addC

Re: [Twisted-Python] Multiple clients

2010-06-18 Thread Jason J. W. Williams
Couldn't you use callLater to fire the first account check every N interval and then just attach the subsequent accounts for that interval as callbacks to the first check inside your callLater func? -J On Fri, Jun 18, 2010 at 9:25 AM, Szabolcs Balogh wrote: > On Friday 18 June 2010 17:49:27 Phil

[Twisted-Python] Twisted Names too many open files...resolv.conf

2010-06-17 Thread Jason J. W. Williams
Hi Guys, Is there anyway to prevent twisted.names.client.createResolver() from creating a resolvconf resolver, when servers= is passed? The use here doesn't need the resolv.conf resolvers (and actually really doesn't want them). What appears to be occurring is that repeated use of createResolver(

Re: [Twisted-Python] Getting at the underlying issue in a DNSServerError failure.

2010-06-16 Thread Jason J. W. Williams
Hi Jean-Paul, You're right DNSServerError = SERVFAIL. DNSNameError = NXDOMAIN The object reference in the description of the thrown exception left some uncertainty regarding what the error really was saying. -J On Wed, Jun 16, 2010 at 8:06 PM, wrote: > On 15 Jun, 11:33 pm, jasonjwwilli...@gma

Re: [Twisted-Python] Twisted Web, Unicode & request.write()

2010-06-15 Thread Jason J. W. Williams
Thanks guys. I actually backed into that myself in the last hour. Was just about to write back with the discovered correction. Makes sense. -J On Wed, Jun 16, 2010 at 12:16 AM, Stephen Thorne wrote: > On 2010-06-15, Jason J. W. Williams wrote: >> Hi Y'all, >> >> What&

[Twisted-Python] Twisted Web, Unicode & request.write()

2010-06-15 Thread Jason J. W. Williams
Hi Y'all, What's the correct way to write out Unicode data to the client in Twisted Web? request.write() throws a "Data must not be unicode". Content-Type header is set with "; charset=utf-8" appended to the content type. -J ___ Twisted-Python mailing

[Twisted-Python] Getting at the underlying issue in a DNSServerError failure.

2010-06-15 Thread Jason J. W. Williams
Hi Guys, What is the best way to get at the underlying issue (i.e. non-responsive name server, NXDOMAIN, SERVFAIL, etc.) when receiving a twisted.names.error.DNSServerError? I'm issuing a resolver.lookupNameservers() BTW. The failure received by the errback generates this for failure.getErrorMes

Re: [Twisted-Python] Sending large files over network with perspective broker

2010-05-22 Thread Jason J. W. Williams
Does send_chuck or callRemote block? -J On Sat, May 22, 2010 at 12:35 PM, Gabriele Lanaro wrote: > I'm writing a gtk application that transfer files in LAN. The application > has a server and can spawn different clients (one for each file to send) . > The flow between client and server is someth

Re: [Twisted-Python] txriak module released.

2010-04-24 Thread Jason J. W. Williams
Put this up on http://twistedmatrix.com/trac/wiki/ProjectsUsingTwisted ? On Sat, Apr 24, 2010 at 3:18 PM, Ray Cote wrote: > Hello Twisted: > > An initial release of txriak has been posted to PyPI: >   > > txriak is a Twisted module for communicating with

Re: [Twisted-Python] Very interesting....

2010-04-24 Thread Jason J. W. Williams
I didn't notice the benchmarks...good catch. I was more interested in the conciseness or lack thereof with the various frameworks. Very surprised that Twisted was nearly as clean and easy to read as the Eventlet example. -J On Sat, Apr 24, 2010 at 12:16 PM, Laurens Van Houtven wrote: > Not the f

[Twisted-Python] Very interesting....

2010-04-24 Thread Jason J. W. Williams
same example coded in eventlet, gevent, twisted, tornado, nodejs, thin+eventmachine http://gist.github.com/376416 (by @greut) Surprising… ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/t

Re: [Twisted-Python] twisted.web in 60 seconds...why aren't these on the frontpage of TM.com?

2010-04-21 Thread Jason J. W. Williams
That looks pretty darn interesting. -J On Wed, Apr 21, 2010 at 7:30 PM, Kevin Horn wrote: > This blog series is also totally rock-a-licious. > > http://krondo.com/blog/?page_id=1327 > > Kevin Horn > > On Wed, Apr 21, 2010 at 8:22 PM, Jason J. W. Williams > wrote: &g

Re: [Twisted-Python] twisted.web in 60 seconds...why aren't these on the frontpage of TM.com?

2010-04-21 Thread Jason J. W. Williams
Naw...I meant what I wrote. ;) exarkun's is great...it's web focused. I'll post to them to the list and y'all can see if its worthwhile. -J On Wed, Apr 21, 2010 at 7:05 PM, sstein...@gmail.com wrote: > > On Apr 21, 2010, at 8:53 PM, Jason J. W. Williams wrote: &g

Re: [Twisted-Python] twisted.web in 60 seconds...why aren't these on the frontpage of TM.com?

2010-04-21 Thread Jason J. W. Williams
pretty. It all starts with that front page...and the web app in 10 lines right smack dab there. I'm going to start with the front page...and then I'm going to write some articles on my blog that are what I wanted when I was learning Twisted. Hopefully, they'll be of use to someone

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread Jason J. W. Williams
Hi Don, Here's the init.d we use for Twisted on Ubuntu. Sets the full path to Twistd: http://gist.github.com/373978 -J On Wed, Apr 21, 2010 at 5:38 AM, Don Schoeman wrote: > Hi guys, > > My application is being executed using twistd as per documentation. All is > working fine but I need to hav

Re: [Twisted-Python] twisted.web in 60 seconds...why aren't these on the frontpage of TM.com?

2010-04-20 Thread Jason J. W. Williams
#x27;s under the web howto link on that page: > > http://twistedmatrix.com/trac/wiki/Documentation > ===> > http://twistedmatrix.com/documents/current/web/howto/ > ===> > http://twistedmatrix.com/documents/current/web/howto/web-in-60/index.html > > -Jessica > > On

Re: [Twisted-Python] twisted.web in 60 seconds...why aren't these on the frontpage of TM.com?

2010-04-20 Thread Jason J. W. Williams
I seem to be missing the link on the page: http://twistedmatrix.com/trac/wiki/Documentation Sent via iPhone Is your e-mail Premiere? On Apr 20, 2010, at 18:38, exar...@twistedmatrix.com wrote: > On 20 Apr, 11:25 pm, jasonjwwilli...@gmail.com wrote: >> Hi Guys, >> >> Just been going through the

[Twisted-Python] twisted.web in 60 seconds...why aren't these on the frontpage of TM.com?

2010-04-20 Thread Jason J. W. Williams
Hi Guys, Just been going through the twisted.web series JP put together (http://jcalderone.livejournal.com/tag/sixty%20seconds)...these are terrific. Turn the bottom one into serving a "Hello World" Resource and you've got a much simpler Hello World than the Tornado site (not to start a war on Tor

Re: [Twisted-Python] mercurial branch

2010-04-20 Thread Jason J. W. Williams
Just a personal opinion, but I'd rather see an official DVCS in Mercurial or Git. I'm not a real Mercurial user myself but from a market share point-of-view, there's more folks using those which would make for a lower barrier to entry for new people getting involved. Twisted frequently bucks popula

Re: [Twisted-Python] mercurial branch

2010-04-18 Thread Jason J. W. Williams
Granted we're just talking about DVCS mirrors here...but someday it would be really great to be able to send pull requests instead of patches for code enhancements. ;) -J Sent via iPhone Is your e-mail Premiere? On Apr 18, 2010, at 9:42, "sstein...@gmail.com" wrote: > > On Apr 18, 2010,

Re: [Twisted-Python] mercurial branch

2010-04-18 Thread Jason J. W. Williams
I use Powdahound mirror at Gihub. I believe it updates daily. Perhaps, we could list it on the website to steer Git folks to it. -J Sent via iPhone Is your e-mail Premiere? On Apr 18, 2010, at 9:19, exar...@twistedmatrix.com wrote: > On 01:44 am, i...@ludios.org wrote: >> On Fri, Apr 9, 2010

Re: [Twisted-Python] cron-style scheduler for Twisted

2010-04-15 Thread Jason J. W. Williams
That would most excellent. :) On Thu, Apr 15, 2010 at 12:56 AM, Glyph Lefkowitz wrote: > > On Apr 15, 2010, at 2:37 AM, Jason J. W. Williams wrote: > >> On Thu, Apr 15, 2010 at 12:20 AM, Glyph Lefkowitz >> wrote: >>> >>> This does not appear to be listed

Re: [Twisted-Python] cron-style scheduler for Twisted

2010-04-14 Thread Jason J. W. Williams
Posted. http://twistedmatrix.com/trac/wiki/ProjectsUsingTwisted On Thu, Apr 15, 2010 at 12:20 AM, Glyph Lefkowitz wrote: > > On Apr 14, 2010, at 9:25 AM, exar...@twistedmatrix.com wrote: > >> On 01:11 pm, vit...@synapticvision.com wrote: >>> hi, >>> is there any cron-style scheduler in Twisted?

Re: [Twisted-Python] cron-style scheduler for Twisted

2010-04-14 Thread Jason J. W. Williams
I'll put it up. -J On Thu, Apr 15, 2010 at 12:20 AM, Glyph Lefkowitz wrote: > > On Apr 14, 2010, at 9:25 AM, exar...@twistedmatrix.com wrote: > >> On 01:11 pm, vit...@synapticvision.com wrote: >>> hi, >>> is there any cron-style scheduler in Twisted? >>> Could one point me to the docs where it c

Re: [Twisted-Python] Question about processes in python

2010-04-12 Thread Jason J. W. Williams
pecting to bite me in the rear by folding Twisted into this architecture? -J On Mon, Apr 12, 2010 at 12:23 PM, Glyph Lefkowitz wrote: > > On Apr 12, 2010, at 12:06 PM, David Ripton wrote: > >> On 2010.04.12 09:39:21 -0600, Jason J. W. Williams wrote: >>> Haven't had

Re: [Twisted-Python] Question about processes in python

2010-04-12 Thread Jason J. W. Williams
: > On 2010.04.12 09:39:21 -0600, Jason J. W. Williams wrote: >> Haven't had any issues yet. Twisted imports occur inside the process >> function. The app was originally written as a purely blocking >> multiprocessing app and rewritten to use Twisted inside the >>

Re: [Twisted-Python] Question about processes in python

2010-04-12 Thread Jason J. W. Williams
il Mayers wrote: > On 04/12/2010 04:39 PM, Jason J. W. Williams wrote: >> Haven't had any issues yet. Twisted imports occur inside the process >> function. The app was originally written as a purely blocking >> multiprocessing app and rewritten to use Twisted inside the &

Re: [Twisted-Python] Question about processes in python

2010-04-12 Thread Jason J. W. Williams
I will say importing your reactor (from twisted.internet import reactor) must be done inside the sub-process or you won't get what you want. -J On Mon, Apr 12, 2010 at 9:39 AM, Jason J. W. Williams wrote: > Haven't had any issues yet. Twisted imports occur inside the process > f

Re: [Twisted-Python] Question about processes in python

2010-04-12 Thread Jason J. W. Williams
importing Twisted inside sub-process should not work? -J On Mon, Apr 12, 2010 at 8:45 AM, David Ripton wrote: > On 2010.04.12 16:23:54 +0200, Gabriel Rossetti wrote: >> Jason J. W. Williams wrote: >> > You might want to try Python's multiprocessing code, it works very >>

Re: [Twisted-Python] Question about processes in python

2010-04-12 Thread Jason J. W. Williams
Hi Gabriel, You might want to try Python's multiprocessing code, it works very well. I've had pretty good luck using it with Twisted inside the processes too. The multiprocessing library handles the work of setting up the send and receive file descriptors. -J On Mon, Apr 12, 2010 at 6:09 AM, Gab

Re: [Twisted-Python] Seeking advice: Coping with heavy log file loads

2010-04-09 Thread Jason J. W. Williams
Hi Paul, Is is sporadic? (the CPU burst) If so, you may be seeing the log rotation code kicking...and it's probably blocking your app too until it completes. I've got a couple patches to fix the blocking issue: http://twistedmatrix.com/trac/ticket/4372 The patch which eliminates old log rotatio

  1   2   >