Thanks, I'll take a look on the code this week to check if we can pull it to the main trunk.

Anthony

Le 17/01/10 18:42, flipkick a écrit :
i found some time to work on the channel history todos.

- the channel history is now organized in a circular deque (adding is always done in constant time, new: no need for malloc if buffer size is reached)
- memory for channel history is correctly freed
- reducing the max_history_size from your js-server-module is now handled (no more memory leak)

here's the patch, it's a recommit so you don't need the previous version:
http://bit.ly/5JFGO9

cheers,
flip


2010/1/14 flip <[email protected] <mailto:[email protected]>>

    hey apes,

    at my ape server git fork i've implemented a history function for
    channel messages in ape. With this patch APE server will send the
    last
    x chat messages of a channel to every user joining it, if x (the
    max_history_size-property of the channel) is greater than 0.
    default_max_history_size for channels is configured in aped.conf
    (Section: Channels), 0 for disabling this feature. alternatively you
    can set up your own server module changing the max_history_size-
    property of your channels as you need it.

    Here's the commit to my fork:
    http://bit.ly/6orbz2

    cheers,
    flip



-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to