Re: [Twisted-Python] XmlStream and addObserver - root element's name?

2008-12-17 Thread Alvin Delagon
Hello Marcin, XmlStream is an implementation of XMPP/Jabber protocol (which is widely used for Instant Messaging). If you have time please read about this on www.xmpp.org. The reason why /frame handler was not executed is because XMPP/Jabber sessions starts and ends with streams like for example:

Re: [Twisted-Python] How to listen on and connect from same TCP port with Twisted?

2009-01-09 Thread Alvin Delagon
You shouldn't bind your client on a port where your server is listening to. --- Alvin On Fri, Jan 9, 2009 at 9:23 PM, Alessio Pace wrote: > Hi, > > I would lilke tro listen on a given TCP port and initiate multiple TCP > client connections from the same port, but I'm encountering the classical:

[Twisted-Python] twisted.web benchmarks

2009-02-17 Thread Alvin Delagon
Hello All, First of all thanks for all the pointers in the #twisted about twisted.web being able to use threadpool. Here's the benchmark between cherryPy 3.0 and twisted.web that I promised. I hope this could serve as a reference in the future. *Testing parameters:* - Office PC: Intel(R) Pentium(

Re: [Twisted-Python] Twisted developers: please donate your time!

2009-02-23 Thread Alvin Delagon
Will spend one week on Yahoo Messenger (YMSG) support for twisted.words next month. --- Alvin On Tue, Feb 24, 2009 at 4:47 AM, David Ripton wrote: > On 2009.02.23 13:12:08 -0500, Itamar Shtull-Trauring wrote: > > As part of the TSF's fundraising efforts, we are trying to get upfront > > donatio

Re: [Twisted-Python] strange server crash

2009-03-22 Thread Alvin Delagon
We also had a similar problem like this on one of our long running servers although I didn't find some time to archive the logs. I'm not sure if it's related; but I can see clearly that you're using python2.4 and it has some funky issues with its memory management ( http://evanjones.ca/python-memor

Re: [Twisted-Python] db connections

2009-03-24 Thread Alvin Delagon
Put self.dbcon in the MyFactory class. MyProtocol instances can access it via self.factory. On Tue, Mar 24, 2009 at 6:10 PM, Pet wrote: > Hi, > > I've wrote an daemon which does some queries to db and sends response > back to client. Do I need to make for every request from client (new > instan

Re: [Twisted-Python] db connections

2009-03-24 Thread Alvin Delagon
gt; > Honestly speaking, I don't understand, what does it mean. > I'm already using connection pool with default cp_min an max, don't I? > Could you explain me, as for a newbie, please > > > > > > http://twistedmatrix.com/documents/8.2.0/api/twisted.enterpr

Re: [Twisted-Python] My twisted web server fall down

2009-05-23 Thread Alvin Delagon
Are logs saying something like this: "Too Many Open Files"? If it is, you have to setup your file descriptor limit (ulimit -n) first before starting the app. On Sun, May 24, 2009 at 2:15 PM, Muaaz Hussain wrote: > Dear all, > I ran penetration testing tool against my twisted web server , the >

Re: [Twisted-Python] Twisted at UDS Karmic

2009-05-25 Thread Alvin Delagon
Any Fluendo/Flumotion guys coming? You guys are close by, it might be a good idea to attend. --- Alvin On Mon, May 25, 2009 at 5:04 PM, Christopher Armstrong < ra...@twistedmatrix.com> wrote: > On Mon, May 25, 2009 at 10:04 AM, Esteve Fernandez > wrote: > > Hi all, > > > > I know quite a few Tw

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

2010-02-15 Thread Alvin Delagon
Hello, I used to write XMPP servers and clients using twisted (currently in production) using what's available in twisted.words.xish. The docs are scarce but you can start off reading the code and the api doc here: http://twistedmatrix.com/documents/8.2.0/api/twisted.words.xish.htmlspecially the d

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 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

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

2010-08-31 Thread Alvin Delagon
Used to wrap MySQLdb for something like except that I did it for sharding. It worked well on distributing 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 < jasonjwwilli.