Re: [Twisted-Python] logging

2013-06-17 Thread James Y Knight
I'm surprised that a thread with 32 messages about logging doesn't seem to have once mentioned windows events, osx structured syslog, or systemd journal as important design points. Maybe people are thinking about such things in the background but it looks a lot like this is being designed in a

Re: [Twisted-Python] A new & improved IResource

2011-07-24 Thread James Y Knight
On Jul 24, 2011, at 11:36 AM, Laurens Van Houtven wrote: > I've been looking at this again recently and honestly it's beginning to feel > like I'm reimplementing large parts of web2. Does that mean I'm doing it > wrong? Either that or that web2 was doing it right... Of course, you don't really

Re: [Twisted-Python] Ways to register stuff only done for backwards compatibility

2011-07-06 Thread James Y Knight
On Jul 5, 2011, at 8:32 AM, Laurens Van Houtven wrote: > In doing twisted.positioning I find my self writing a bunch of code in ways I > would ordinarily write it differently, because we have to support 2.4 still > (when is that going away? Isn't the most recent RHEL 2.6 already?). > > Is there

Re: [Twisted-Python] server issues; SVN in read-only, but Trac isn't

2011-07-04 Thread James Y Knight
On Jul 4, 2011, at 7:06 PM, Glyph Lefkowitz wrote: > Hello from the Twisted server operations team, > > The Twisted SVN server has run into some minor unexpected trouble during > routine system maintenance. For now, SVN is in read-only mode. However, > this shouldn't affect Trac, so feel fre

Re: [Twisted-Python] Refactoring Documentation

2011-01-21 Thread James Y Knight
> On 21 January 2011 22:35, Glyph Lefkowitz wrote: >> �I don't believe we have a mirror on >> github, but maybe somebody could correct me. > > There are 79 repos on github that match the word twisted. > > This one claims to be updated every 15 minutes and seems to be pretty > up to date (has a com

Re: [Twisted-Python] Question about SerialPort

2011-01-20 Thread James Y Knight
On Jan 20, 2011, at 6:32 AM, Albert Brandl wrote: > The main problem seems to be the specification of Modbus RTU. RTU > messages are separated by time gaps that are at least 3.5 characters > long. Unfortunately, this is the only reliable way for separating > messages - there is no length header or

Re: [Twisted-Python] Handling of NMEA messages

2010-12-01 Thread James Y Knight
On Dec 1, 2010, at 9:33 AM, Albert Brandl wrote: >> You may also want to look at >> https://code.launchpad.net/~lvh/twisted/positioning and see if it >> influences your plans at all. It would be nice if we eventually >> merged that code. :) > > It's kind of hard to understand what this repos

Re: [Twisted-Python] signalfd

2010-11-17 Thread James Y Knight
On Nov 17, 2010, at 10:40 AM, Neal Becker wrote: > One more piece seems available: > > http://code.google.com/p/python-atfork/ Nope, that's not a "real" atfork: it only monkey-patches python's os.fork() function, so it doesn't catch any fork done by C code. So it's not good enough. (but of cou

Re: [Twisted-Python] signalfd

2010-11-03 Thread James Y Knight
On Nov 3, 2010, at 10:23 PM, exar...@twistedmatrix.com wrote: > On 01:45 am, ndbeck...@gmail.com wrote: >> On modern linux, signalfd can be used to convert sigchld into an event >> on a >> file descriptor. Looks like just what is wanted for processProtocol. > > It does, indeed. I'm not sure it'

Re: [Twisted-Python] _twistd_unix.py / daemonize() / OSX / USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER

2010-10-13 Thread James Y Knight
On Oct 13, 2010, at 12:05 PM, Erik van Blokland wrote: > > On Oct 13, 2010, at 5:52 PM, Phil Mayers wrote: > >> Other info indicates this is Apple trying to be clever and "protect" >> applications from some signal handling issues surrounding fork() with >> libraries which aren't safe in that

Re: [Twisted-Python] reactor.spawnProcess() and file descriptors

2010-06-28 Thread James Y Knight
On Jun 28, 2010, at 9:03 AM, Itamar Turner-Trauring wrote: > On Mon, 2010-06-28 at 13:21 +0100, Carlos Valiente wrote: >> I wanted to skip the calls to close() >> -- 1024 of them, in my case -- because, according to strace(1), >> that >> takes about 100 ms (and I'd like to save those millisec

Re: [Twisted-Python] Review process, news fragments

2010-06-21 Thread James Y Knight
On Jun 20, 2010, at 6:26 PM, exar...@twistedmatrix.com wrote: > Obviously this is English prose we're talking about here, and > there's a > lot of room for variation. I don't want to impose a *strict* style > guide here. I do want the fragments to all aim for roughly the same > level of detail,

Re: [Twisted-Python] Punching a firewall with (or without) Twisted - the plot thickens

2010-06-17 Thread James Y Knight
On Jun 17, 2010, at 3:16 PM, Zooko O'Whielacronx wrote: > Some > people think there aren't enough routers that implement UPnP well > enough to make it worthwhile Doesn't *every* home router purchased in the last 5 years support one of UPnP or NAT-PMP? That's been my experience, at least. James

Re: [Twisted-Python] Punching a firewall with Twisted?

2010-06-17 Thread James Y Knight
On Jun 17, 2010, at 12:59 PM, Maarten ter Huurne wrote: > Maybe it uses UPNP to tell the router which ports to open? > > As far as I know, there are no hole-punching techniques for TCP like > there > are for UDP. So the only way to get a port forward is to configure the > router, manually or thro

[Twisted-Python] Test, plz ignore

2010-05-21 Thread James Y Knight
test mail. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] SSHSessionProcessProtocol.inConnectionLost() behavior and Git over Conch

2010-03-05 Thread James Y Knight
On Mar 4, 2010, at 11:51 PM, Michael Hudson-Doyle wrote: > Maybe > it's a simple logic error and it method should be > 'outConnectionClosed' instead? I'd agree with that. Clearly it should not be sending EOF there for the server process closing its stdin. One more detail though: you actually

Re: [Twisted-Python] [ANNOUNCE] Twisted 10.0.0pre1 is now released

2010-02-23 Thread James Y Knight
On Feb 23, 2010, at 10:45 PM, Tim Allen wrote: > On 02/24/2010 02:21 PM, Glyph Lefkowitz wrote: >> On Feb 21, 2010, at 11:08 PM, Jonathan Lange wrote: >>> On Sun, Feb 21, 2010 at 10:57 PM, Darren >>> Govoni wrote: Hi, This is great! Is there a list of new features or impr

Re: [Twisted-Python] lore2sphinx table handling?

2010-01-04 Thread James Y Knight
On Jan 4, 2010, at 8:32 PM, Tim Allen wrote: > I think the List Table format is probably the easiest to maintain in > a simple text editor, followed by the Simple Table format. CSV mode > looks like it's really designed for you to keep the table in an > external > file and edit it in a spreadsh

Re: [Twisted-Python] Coding standard question: flowing long imports with parens

2009-12-21 Thread James Y Knight
On Dec 21, 2009, at 12:03 AM, Jonathan Lange wrote: > Now that we no longer support Python 2.3, may we also allow imports in > the following style? > > from very.long.package import ( >bar, >foo, >) Separating "from X import" and "Y" over a newline totally breaks grepping for impor

Re: [Twisted-Python] web vs web2 clarification

2009-12-10 Thread James Y Knight
On Dec 10, 2009, at 5:29 PM, Mikhail Terekhov wrote: > That is all true but it is very close to Joel's reasoning, kind of a > manager's point of view. It is too business/money oriented and doesn't > exhaust all the reasons why people write software in open source world in > particular. And what

Re: [Twisted-Python] HTML shoudl not be baked into twisted.web HTTP implementation

2009-12-09 Thread James Y Knight
On Dec 9, 2009, at 4:18 PM, Valeriy Zamarayev wrote: > I want to second Jared's point. In my case, the responses from web servers, > including the body, often end up in log files. HTML looks pretty ugly there. > Though this is a minor point for me in the otherwise great Twisted software! Essen

Re: [Twisted-Python] HTML shoudl not be baked into twisted.web HTTP implementation

2009-12-09 Thread James Y Knight
On Dec 9, 2009, at 11:52 AM, Jared Gisin wrote: > I’m writing a HTTP server that exposes various resources as an API. Unless > I’m missing something, twisted’s HTTP protocol implementation is in > twisted.web.http. > > The problem with this package is that it’s inexplicably wrapped up in HTML.

Re: [Twisted-Python] Twisted webserver performance issues

2009-11-09 Thread James Y Knight
On Nov 8, 2009, at 1:08 PM, James Y Knight wrote: >> >> Can we attach gdb to the process and trigger an all-threads stack >> dump when it happens? > > That's a good idea. Unfortunately, currently it seems to be working > quite smoothly. :) The intermittent long p

Re: [Twisted-Python] Daemon processes on windows

2009-11-08 Thread James Y Knight
On Nov 8, 2009, at 10:54 PM, Brian Granger wrote: Bummer, then I can't use this approach. My "server" uses reactor.spawnProcess which needs the signal handlers to be installed (SIGCHLD specifically) to work properly... do you know if it can be done without the dual thread trick. ...On win

Re: [Twisted-Python] Twisted webserver performance issues

2009-11-08 Thread James Y Knight
On Nov 8, 2009, at 9:02 AM, exar...@twistedmatrix.com wrote: > On 04:26 am, f...@fuhm.net wrote: >> When I last looked into the performance issues, I found that >> sometimes >> trac appears to block for long periods of time without releasing the >> GIL. That seems to be the core of the performa

Re: [Twisted-Python] Twisted webserver performance issues

2009-11-07 Thread James Y Knight
When I last looked into the performance issues, I found that sometimes trac appears to block for long periods of time without releasing the GIL. That seems to be the core of the performance issues, currently. When it's responding normally, it's perfectly snappy. But, sometimes, it blocks fo

Re: [Twisted-Python] Phasing out old-style classes

2009-10-27 Thread James Y Knight
On Oct 27, 2009, at 10:32 AM, Steve Steiner (listsin) wrote: > Is this something that can be handled by just running the tests with > the right switch so we can see everything that passes without the > switch but doesn't with? > > Is there a "new-style" switch or just -3? Download: http://twisted

Re: [Twisted-Python] Phasing out old-style classes

2009-10-24 Thread James Y Knight
On Oct 25, 2009, at 1:38 AM, Glyph Lefkowitz wrote: What do you do? Well, the obvious upgrade path here is to make a class which (A) inherits from "Library" to get Twisted functionality and (B) inherits from "object" to get new-style-ness. So you go ahead and write: # in your application

Re: [Twisted-Python] Phasing out old-style classes

2009-10-08 Thread James Y Knight
On Oct 8, 2009, at 7:59 PM, Mark Visser wrote: > I've been bitten a couple times by twisted's use of old-style classes. > Now that Jython is finally off the 2.2 branch, is there any real > reason > to stay backwards compatible? I don't see any reason to make this change for twisted running on th

Re: [Twisted-Python] Using reactor with multiple processes

2009-09-16 Thread James Y Knight
On Sep 16, 2009, at 12:33 PM, David Yoakley wrote: > Thanks Phil for the reference to ampoule. We will look at that > next. We are still hoping to get the parent set up in such a way > that whatever the forking :-) shared state is, it does not get > established until after the children are

Re: [Twisted-Python] os x installer, multiple source locations

2009-09-07 Thread James Y Knight
On Sep 5, 2009, at 10:08 PM, Phil Christensen wrote: > This is a frustrating partial install of Twisted that ships with OS X Not true. It was fixed soon after 10.5's release. I think in the very first patch, 10.5.1, but I could be wrong about that. > Interestingly enough, it's gone > from Sno

Re: [Twisted-Python] Conch/SSH & Cisco IOS

2009-09-03 Thread James Y Knight
On Sep 3, 2009, at 5:38 AM, Phil Mayers wrote: > All, > > I've been having some problems using Conch/SSH to talk to the SSH > server > on Cisco IOS (specifically the netconf subsystem) > > It seems that the IOS SSH server reacts badly to the following: > > c: syn > s: syn,ack > c: ack > c: PSH

Re: [Twisted-Python] (Mis)indented Posts

2009-07-05 Thread James Y Knight
On Jul 3, 2009, at 10:32 AM, Gerrat Rickert wrote: > ...ok, I've created a new post twice on this list twice, and both > times > my post has been indented and placed under a completely > different/irrelevant post > > Here: > http://twistedmatrix.com/pipermail/twisted-python/2009-June/ > 019859

Re: [Twisted-Python] python properties in twisted don't work

2008-12-18 Thread James Y Knight
On Dec 18, 2008, at 3:06 PM, Tristan Seligmann wrote: * Alec Flett [2008-12-18 11:03:48 -0800]: On Dec 18, 2008, at 6:04 AM, Drew Smathers wrote: Protocol is an old-style class - doesn't inherit from object - so property won't work in that context. This won't be a problem in python 3 - o

Re: [Twisted-Python] Deferred question

2008-12-09 Thread James Y Knight
On Dec 9, 2008, at 4:09 AM, Gabriel Rossetti wrote: Forget it, I monkey-patched defer.Deferred to add __del__ to see if it was called, and it was, so they are getting destroyed... BTW, that is not a good way to tell if objects are being deleted. Simply the act of adding a __del__ to an objec