Re: [Twisted-Python] XMPP server implementations with twisted/words

2010-02-16 Thread Phil Mayers
On 02/16/2010 05:06 AM, Werner Thie wrote: > best grades in stability (see the discussion of the XMPP server > Chesspark uses, they ran into memory problems such that periodic > rebooting was the only solution). Politically I'm wary to introduce a That was jabberd2 I think. They moved to ejabberd

Re: [Twisted-Python] Need help for structured application development

2010-02-16 Thread Alexandre Quessy
Hello Einar, This is a quite long email. What I can tell you, is that querying many command line applications with t.i.utils.getProcessOutput and gathering them in a DeferredList worked for me. Example: the list_cameras in http://svn.sat.qc.ca/trac/miville/browser/trunk/py/scenic/devices/cameras.py

[Twisted-Python] Pulling the ethernet cable out

2010-02-16 Thread gary clark
Hello, I'm tested my client server model. The server being a twisted server. I am using the class NetstringReceiver. When I close down the client the appropriate call to close the connection is made "connectionLost". However when I just pull the client connection cable from the network. I would

Re: [Twisted-Python] Pulling the ethernet cable out

2010-02-16 Thread Alvin Delagon
Hello Garyc, This is not twisted's fault. Pulling a network plug doesn't tell the server that the client went away immediately since the connection wasn't closed properly. Pulling the plug produces TCP half-open scenario when one thinks that the connection is still up. This can be remedied by poll

Re: [Twisted-Python] Pulling the ethernet cable out

2010-02-16 Thread gary clark
Much appreciated Alvin. --- On Tue, 2/16/10, Alvin Delagon wrote: > From: Alvin Delagon > Subject: Re: [Twisted-Python] Pulling the ethernet cable out > To: "Twisted general discussion" > Date: Tuesday, February 16, 2010, 10:31 AM > Hello Garyc, > This is not twisted's fault. Pulling a > netwo

Re: [Twisted-Python] Pulling the ethernet cable out

2010-02-16 Thread gary clark
I have to poll at the twisted server "getTcpKeepAlive" for the state of the keep alive. Thanks, Garyc --- On Tue, 2/16/10, gary clark wrote: > From: gary clark > Subject: [Twisted-Python] Pulling the ethernet cable out > To: "Twisted general discussion" > Date: Tuesday, February 16, 2010, 1

Re: [Twisted-Python] Pulling the ethernet cable out

2010-02-16 Thread Alvin Delagon
Hello, No, getTcpKeepAlive will only tell you if SO_KEEPALIVE is enabled. It's setTcpKeepAlive you want. If it's enabled, once the keepalive times out on a half-open scenario, the connectionLost method will be triggered. You can read the API docs here: http://twistedmatrix.com/documents/8.2.0/api

[Twisted-Python] web page on doc...

2010-02-16 Thread K. Richard Pixley
I've been going around and around on documentation with/for twisted for a few days now. For example, I read things like "the documentation is written in epytext" and "documentation is processed by trial" and conclude that trial processes epytext. I think I'm beginning to understand what's real

Re: [Twisted-Python] Pulling the ethernet cable out

2010-02-16 Thread gary clark
Hey Alvin, In the document link you provided the packets are being sent periodically every 2 hours for setTcpKeepAlive(1). I am assuming that the a packet is sent straight away and then waits. At the moment I dont see the connection lost. The getTcpKeepAlive() is returning 1 indicating that keep

Re: [Twisted-Python] web page on doc...

2010-02-16 Thread Kevin Horn
On Tue, Feb 16, 2010 at 12:17 PM, K. Richard Pixley wrote: > I've been going around and around on documentation with/for twisted for > a few days now. For example, I read things like "the documentation is > written in epytext" and "documentation is processed by trial" and > conclude that trial pr

[Twisted-Python] fast high load protocol

2010-02-16 Thread Vlad Shevchenko
Hi, I have developed two kind of servers: api - http server memory_db - dict-based server with some logic of putting data to dict and getting it back. Api communicate with memory_db via txJSON-RPC but response time is huge under high load. I also try implementation with replacement txJSON-R

Re: [Twisted-Python] fast high load protocol

2010-02-16 Thread Phil Christensen
On Feb 16, 2010, at 2:46 PM, Vlad Shevchenko wrote: > I have developed two kind of servers: >api - http server >memory_db - dict-based server with some logic of putting data to dict and > getting it back. > > Api communicate with memory_db via txJSON-RPC but response time is huge under >

Re: [Twisted-Python] Pulling the ethernet cable out

2010-02-16 Thread Alec Matusis
Assuming you are on Linux, you can run #man tcp and take a look at the tunable parameters that control TCP protocol timeouts: tcp_keepalive_intvl tcp_keepalive_probes tcp_keepalive_time They can be tuned via /proc filesystem. These changes are system-wide, so you should consider the performanc

Re: [Twisted-Python] Pulling the ethernet cable out

2010-02-16 Thread gary clark
Much appreciated the response. setTcpKeepAlive(1) is good for calling connectionLst, however I have to send a packet out to trigger this event. Its too bad, just had to send periodically a small stay-alive packet. Thanks, Garyc --- On Tue, 2/16/10, Alec Matusis wrote: > From: Alec Matusis >

Re: [Twisted-Python] web page on doc...

2010-02-16 Thread Kevin Horn
On Tue, Feb 16, 2010 at 2:18 PM, K. Richard Pixley wrote: > Kevin Horn wrote: > > xhtml is processed into html by "lore" not "trial". > > Doh. Thanks. I *knew* that. I haven't gotten either to work yet, but > neither is really on my radar right now either. > > Well, I haven't gotten Lore to w

Re: [Twisted-Python] fast high load protocol

2010-02-16 Thread Vlad Shevchenko
Really I need a large amount of data to be available before I can begin calculations, Json-PRC vs. PB provide a 10+ times smaller response time for same returning data On Tue, Feb 16, 2010 at 10:08 PM, Phil Christensen wrote: > On Feb 16, 2010, at 2:46 PM, Vlad Shevchenko wrote: > > I have devel

Re: [Twisted-Python] fast high load protocol

2010-02-16 Thread Vlad Shevchenko
here is some statistic: low network traffic === Json-RPC PB average MIN 0.016 average MIN 0.011 average MAX 0.044 average MAX 0.029 AVG 0.027 AVG 0.017 90% line 0.02790% line 0.017 CLIENTS 139

Re: [Twisted-Python] fast high load protocol

2010-02-16 Thread Stephen Thorne
Vlad, Have you considered using twisted.protocols.amp ? -- Regards, Stephen Thorne Development Engineer Netbox Blue ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Pulling the ethernet cable out

2010-02-16 Thread Michael Hudson-Doyle
On 17 February 2010 10:56, gary clark wrote: > > Much appreciated the response. setTcpKeepAlive(1) is good for calling > connectionLst, however I have to send a packet out to trigger this event. > Its too bad, just had to send periodically a small stay-alive packet. That's just a fact of life wit

Re: [Twisted-Python] web page on doc...

2010-02-16 Thread Werner Thie
...snip > Well, I haven't gotten Lore to work (on Windows at least) in a looong > time. The only way I can get trial to work on Windows is by using the > "Twisted Command Prompt", or some hairy PATH manipulation. snip... Not to my knowledge, I'm running trial on MSW with JScript and all enab

[Twisted-Python] Help Twisted at PyCon (or anywhere else)

2010-02-16 Thread Itamar Turner-Trauring
Hello Twisted users, Does Twisted help you with your job, hobby or homework? Here's how you can help Twisted in return, especially if you're coming to PyCon: * Talk to us! We want to hear what features you want, what problems you are having. But especially, we want to hear about the cool stuff yo