Re: [Twisted-Python] getPeer() inside conch

2009-09-29 Thread Glyph Lefkowitz
On Tue, Sep 29, 2009 at 7:16 PM, Benjamin Rutt wrote: > The code: > > print 'hello, peer %s' % (self.terminal.transport.getPeer()) > > Fails with: > > AttributeError: SSHSessionProcessProtocol instance has no attribute > 'getPeer' > Oops. Looks like my reading of the code was wrong. On

Re: [Twisted-Python] getPeer() inside conch

2009-09-29 Thread Benjamin Rutt
The code: print 'hello, peer %s' % (self.terminal.transport.getPeer()) Fails with: AttributeError: SSHSessionProcessProtocol instance has no attribute 'getPeer' One possible patch to twisted 8.2.0's conch/ssh/session.py's SSHSessionProcessProtocol class to add a getPeer() method would b

Re: [Twisted-Python] I found an interisting comment about Twisted vs. Erlang

2009-09-29 Thread Jarrod Roberson
On Tue, Sep 29, 2009 at 3:11 PM, Laurens Van Houtven wrote: > One is a language. The other is an event loop. I'm not sure how we are > supposed to compare the two. If he would've said E and Twisted, > perhaps it'd be a more interesting comparison :-) > > Also, what Steve said jumped right into my

Re: [Twisted-Python] strange exception on Python 2.6 + Snow Leopard

2009-09-29 Thread Phil Christensen
On Sep 29, 2009, at 4:42 PM, exar...@twistedmatrix.com wrote: > On 08:37 pm, p...@bubblehouse.org wrote: >> I do see the following issues during compilation, which cause the >> epoll reactor to fail. I don't use the epoll reactor, so I haven't >> bothered trying to fix it: [snip] > These aren't rea

Re: [Twisted-Python] strange exception on Python 2.6 + Snow Leopard

2009-09-29 Thread exarkun
On 08:37 pm, p...@bubblehouse.org wrote: >On Sep 29, 2009, at 3:08 PM, Steve Steiner (listsin) wrote: >>>Hmm, sorry to question, but are you sure? >> >>You're right, different error. Sorry for not replying earlier -- just >>found this when Googling for 10.6 build instructions as I'm having a >>dev

Re: [Twisted-Python] strange exception on Python 2.6 + Snow Leopard

2009-09-29 Thread Phil Christensen
On Sep 29, 2009, at 3:08 PM, Steve Steiner (listsin) wrote: >> Hmm, sorry to question, but are you sure? > > You're right, different error. Sorry for not replying earlier -- just > found this when Googling for 10.6 build instructions as I'm having a > devil of a time building from SVN on 10.6 with

Re: [Twisted-Python] I found an interisting comment about Twisted vs. Erlang

2009-09-29 Thread Alec Matusis
> What was your application doing at the time? Was it idle, heavily > loaded, somewhere in the middle? What is the QoS for each client > connecting to your service? Are requests being handled in a timely > fashion? Do the users of your service perceive a performance > problem or do you just not

[Twisted-Python] I found an interisting comment about Twisted vs. Erlang

2009-09-29 Thread Alec Matusis
PS. >From my experience, the hardest problem in running large-scale Twisted servers is finding memory leaks, and to a lesser extent debugging intermittent silent server crashes. It's not easy to attach a debugger to a production sever if you are looking for sources of intermittent crashes for exam

Re: [Twisted-Python] I found an interisting comment about Twisted vs. Erlang

2009-09-29 Thread Jamu Kakar
Hi Alec, On Tue, Sep 29, 2009 at 12:36 PM, Alec Matusis wrote: > As you can see from the %CPU column, I have my reasons for concern ;) This > is current copy and paste from a node with 2x quad core xeon L5420  @ > 2.50GHz - 1 twistd process per core. > >  PID USER      PR  NI  VIRT  RES  SHR S %C

Re: [Twisted-Python] I found an interisting comment about Twisted vs. Erlang

2009-09-29 Thread Alec Matusis
> I think we are accounting way too much time to the unfounded > unaccountable random blathering of a troll :-) As you can see from the %CPU column, I have my reasons for concern ;) This is current copy and paste from a node with 2x quad core xeon L5420 @ 2.50GHz - 1 twistd process per core.

Re: [Twisted-Python] I found an interisting comment about Twisted vs. Erlang

2009-09-29 Thread Laurens Van Houtven
I think we are accounting way too much time to the unfounded unaccountable random blathering of a troll :-) ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] I found an interisting comment about Twisted vs. Erlang

2009-09-29 Thread Drew Smathers
On Tue, Sep 29, 2009 at 2:16 PM, Alec Matusis wrote: > I have been a long time Twisted user, and I do not know Erlang. > I run into this interesting comment in engineering notes on Facebook Chat > scalability: > > http://www.facebook.com/note.php?note_id=51412338919&comments > > “Leif K-Brooks >

Re: [Twisted-Python] I found an interisting comment about Twisted vs. Erlang

2009-09-29 Thread Laurens Van Houtven
One is a language. The other is an event loop. I'm not sure how we are supposed to compare the two. If he would've said E and Twisted, perhaps it'd be a more interesting comparison :-) Also, what Steve said jumped right into my eye as well. Don't get me wrong. I like Erlang -- it's functional, it'

Re: [Twisted-Python] strange exception on Python 2.6 + Snow Leopard

2009-09-29 Thread Steve Steiner (listsin)
> Hmm, sorry to question, but are you sure? You're right, different error. Sorry for not replying earlier -- just found this when Googling for 10.6 build instructions as I'm having a devil of a time building from SVN on 10.6 with Python 2.6.1. S ___

Re: [Twisted-Python] Twisted and db table changes

2009-09-29 Thread Mark Visser
gary clark wrote: > Hello, > > I have a server that needs to track changes on a table database. > > When a table changes it needs the server accesses the table and send data out. > > Not sure what the best approach to do this in twisted. Do I create a thread > in twisted and monitor for any change

Re: [Twisted-Python] I found an interisting comment about Twisted vs. Erlang

2009-09-29 Thread Steve Steiner (listsin)
On Sep 29, 2009, at 2:16 PM, Alec Matusis wrote: > I have been a long time Twisted user, and I do not know Erlang. > I run into this interesting comment in engineering notes on Facebook > Chat > scalability: > > http://www.facebook.com/note.php?note_id=51412338919&comments > > “Leif K-Brooks >

[Twisted-Python] I found an interisting comment about Twisted vs. Erlang

2009-09-29 Thread Alec Matusis
I have been a long time Twisted user, and I do not know Erlang. I run into this interesting comment in engineering notes on Facebook Chat scalability: http://www.facebook.com/note.php?note_id=51412338919&comments “Leif K-Brooks I'm curious whether you considered using the Python library Twisted (

Re: [Twisted-Python] AlreadyCalledError trying more than a server

2009-09-29 Thread exarkun
On 08:27 am, antonio.bea...@gmail.com wrote: >Hi all: >I've implemented my client as comes in twisted documentation >(FingerProxy example). >I want to connect with several machines at the same time, send and >receive data from this servers and start again (monitoring in one >word). > >I've created

Re: [Twisted-Python] Twisted and db table changes

2009-09-29 Thread exarkun
On 28 Sep, 01:07 pm, burslem2...@yahoo.com wrote: >Hello, > >I have a server that needs to track changes on a table database. > >When a table changes it needs the server accesses the table and send >data out. > >Not sure what the best approach to do this in twisted. Do I create a >thread in twist

[Twisted-Python] AlreadyCalledError trying more than a server

2009-09-29 Thread Antonio Beamud Montero
Hi all: I've implemented my client as comes in twisted documentation (FingerProxy example). I want to connect with several machines at the same time, send and receive data from this servers and start again (monitoring in one word). I've created a ClientFactory and a loop like this: conf['host