I don't think you can solve it in libmemcached, it seems to always open and close. You can pool requests, but that would be annoying with a page full of elements, I would say.

http://www.outoforder.cc/projects/libs/apr_memcache/ does use configurable pooling and would be my choice for AOLserver.

I would not use it as a Tcl module, but rather as a proper AOLserver module that exposes Tcl commands. That way you can integrate it in such a way that it is shared between all interps and config is done in the main config files. (pools and servers)

Bas.

On 8 Aug 2007, at 17:19, Guan Yang wrote:

Bas Scheffers wrote:
http://www.danga.com/memcached/ is brilliant. I have not used it in AOLserver yet, though. There is a Tcl only client but for best performance you'd probably be best off creating a module using one of the C libraries available.

When I last tried memcached, I used the tclmemcached client, which links against a C library (libmemcache).

The problem was that it didn't pool the connections to memcached, but opens a new connection for each request and was not very good at recycling them. This caused some problems on my system.

Is there a solution to this problem? (I was just a memcached neophyte, so it might be something obvious.)

/Guan


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to