[kamaelia-list] Sedna Protocol for Kamaelia

2009-01-07 Thread Jim Washington
Hi, all I'm releasing my code for a protocol for Sedna for Kamaelia. Or, maybe, I'm just letting it escape. In reality, I just stuck it in Sourceforge SVN, and anyone who wants to peek at it is welcome. :) What is Sedna? a very cool, free, multi-user XML database. http://modis.ispras.ru/sedn

[kamaelia-list] Re: Load

2009-01-07 Thread Lauri Pesonen
I had another look and this and realised that I saw the issue also with a TCP server that was not serving any connection, i.e. none of the components that form the protocol handler were even instantiated. I also ran EchoProtocol().run() which also resulted in a small constant load. So it seems to

[kamaelia-list] Re: Load

2009-01-07 Thread Lauri Pesonen
2009/1/3 Sylvain Hellegouarch : > > It's not normal indeed. Most likely, one of your component doesn't pause > when it's not needed making the scheduler runs like crazy. Ensure you > have somthing similar to: > > if not self.anyReady(): > self.pause() > > yield 1 > > In every components. Thanks

[kamaelia-list] Message framing over TCP

2009-01-07 Thread Lauri Pesonen
I'm implementing a simple messaging protocol over TCP at the moment. I want immediate message delivery and that's about it. I've tried using DataChunker for this, but it buffers messages (two of them at the moment). It could be made to not buffer messages by surrounding a message with sync sequen

[kamaelia-list] Re: Load

2009-01-07 Thread Matt
On Jan 3, 9:21 pm, Sylvain Hellegouarch wrote: > Lauri Pesonen a écrit :> Hi, > > > I'm seeing idle Kamaelia apps running at 2.5% CPU constantly on a > > 2.4GHz Core 2 Duo. Is this just the way the framework works or could > > it be possible to lower that number. I'm hoping to implement a deamon

[kamaelia-list] Re: Message framing over TCP

2009-01-07 Thread Matt
> What I really want is a dead simple framing protocol that simply > prefixes the message with a 16-bit number (or 32-bit number) that > indicates the number of bytes that follow. I'm new to Python so I'm > not quite sure how to go about this though. I wrote a proof-of-concept > by using struct.pa

[kamaelia-list] Re: Sedna Protocol for Kamaelia

2009-01-07 Thread Michael Sparks
Hi Jim, This sounds really cool. I'll take a look as soon as I can :) Many thanks for releasing this and letting us all see it :) (currently reviewing and making notes on Jason's welcome branch :) Michael. On Wednesday 07 January 2009 18:02:36 Jim Washington wrote: > Hi, all > > I'm releasi

[kamaelia-list] Re: Ready for merge: private_JMB_HTTPSupport

2009-01-07 Thread Michael Sparks
Jason wrote: > To review: > cd branches/private_JMB_HTTPSupport > svn diff -r5975:HEAD Just a note that this line is wrong. It should be: svn diff -r5976:HEAD . The 5976 is from here: /media/disk/kamaelia.cvs/branches/private_JMB_HTTPSupport> svn log -- stop-on-copy|grep ^r|tail -1 r5976 |