head 1.10; access; symbols pkgsrc-2016Q4:1.9.0.10 pkgsrc-2016Q4-base:1.9 pkgsrc-2016Q3:1.9.0.8 pkgsrc-2016Q3-base:1.9 pkgsrc-2016Q2:1.9.0.6 pkgsrc-2016Q2-base:1.9 pkgsrc-2016Q1:1.9.0.4 pkgsrc-2016Q1-base:1.9 pkgsrc-2015Q4:1.9.0.2 pkgsrc-2015Q4-base:1.9 pkgsrc-2015Q3:1.8.0.4 pkgsrc-2015Q3-base:1.8 pkgsrc-2015Q2:1.8.0.2 pkgsrc-2015Q2-base:1.8 pkgsrc-2015Q1:1.7.0.8 pkgsrc-2015Q1-base:1.7 pkgsrc-2014Q4:1.7.0.6 pkgsrc-2014Q4-base:1.7 pkgsrc-2014Q3:1.7.0.4 pkgsrc-2014Q3-base:1.7 pkgsrc-2014Q2:1.7.0.2 pkgsrc-2014Q2-base:1.7 pkgsrc-2014Q1:1.6.0.18 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.16 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.14 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.12 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.10 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.8 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.6 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.4 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.2 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.5.0.2 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.4.0.14 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.12 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.10 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.8 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.6 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.4 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.2 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.3.0.24 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.22 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.20 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.18 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.16 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.14 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.12 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.10 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.8 pkgsrc-2008Q1:1.3.0.6 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.4 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.2 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.2.0.4 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.2 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.1.1.1.0.16 pkgsrc-2006Q4-base:1.1.1.1 pkgsrc-2006Q3:1.1.1.1.0.14 pkgsrc-2006Q3-base:1.1.1.1 pkgsrc-2006Q2:1.1.1.1.0.12 pkgsrc-2006Q2-base:1.1.1.1 pkgsrc-2006Q1:1.1.1.1.0.10 pkgsrc-2006Q1-base:1.1.1.1 pkgsrc-2005Q4:1.1.1.1.0.8 pkgsrc-2005Q4-base:1.1.1.1 pkgsrc-2005Q3:1.1.1.1.0.6 pkgsrc-2005Q3-base:1.1.1.1 pkgsrc-2005Q2:1.1.1.1.0.4 pkgsrc-2005Q2-base:1.1.1.1 pkgsrc-2005Q1:1.1.1.1.0.2 pkgsrc-2005Q1-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.10 date 2017.02.16.11.10.53; author adam; state dead; branches; next 1.9; commitid KC2ADHbwrPIhqaGz; 1.9 date 2015.12.08.17.41.56; author adam; state Exp; branches 1.9.10.1; next 1.8; commitid ksdYX1KnGWimBaMy; 1.8 date 2015.05.21.14.07.10; author rodent; state Exp; branches; next 1.7; commitid wAM7hKRFn9ugSjmy; 1.7 date 2014.04.25.09.27.37; author wiz; state Exp; branches; next 1.6; commitid 2wj5qk6SetkyT2yx; 1.6 date 2012.02.25.20.52.53; author mspo; state Exp; branches; next 1.5; 1.5 date 2011.10.03.11.53.11; author adam; state Exp; branches; next 1.4; 1.4 date 2010.02.27.20.40.52; author morr; state Exp; branches; next 1.3; 1.3 date 2007.08.20.17.02.41; author abs; state Exp; branches; next 1.2; 1.2 date 2007.02.27.11.29.19; author grant; state Exp; branches; next 1.1; 1.1 date 2005.02.09.05.37.30; author xtraeme; state Exp; branches 1.1.1.1; next ; 1.9.10.1 date 2017.02.17.19.11.36; author bsiegert; state dead; branches; next ; commitid sjeDBEjPOI7i3lGz; 1.1.1.1 date 2005.02.09.05.37.30; author xtraeme; state Exp; branches; next ; desc @@ 1.10 log @Changes 1.4.34: Add -o modern switches to -h metadump: Fix preventing dumping of class 63 Fix cache_memlimit bug for > 4G values metadump: ensure buffer is flushed to client before finishing Number of small fixes/additions to new logging add logging endpoint for LRU crawler evicted_active counter for LRU maintainer stop pushing NULL byte into watcher stream Scale item hash locks more with more worker threads (minor performance) Further increase systemd service hardening Missing necessary header for atomic_inc_64_nv() used in logger.c (solaris) Fix print format for idle timeout thread Improve binary sasl security fixes Fix clang compile error Widen systemd caps to allow maxconns to increase Add -X option to disable cachedump/metadump Don't double free in lru_crawler on closed clients Fix segfault if metadump client goes away @ text @$NetBSD: patch-aa,v 1.9 2015/12/08 17:41:56 adam Exp $ time_t changes --- items.c.orig 2015-11-20 01:18:56.000000000 +0000 +++ items.c @@@@ -460,9 +460,9 @@@@ char *item_cachedump(const unsigned int /* Copy the key since it may not be null-terminated in the struct */ strncpy(key_temp, ITEM_key(it), it->nkey); key_temp[it->nkey] = 0x00; /* terminate */ - len = snprintf(temp, sizeof(temp), "ITEM %s [%d b; %lu s]\r\n", + len = snprintf(temp, sizeof(temp), "ITEM %s [%d b; %jd s]\r\n", key_temp, it->nbytes - 2, - (unsigned long)it->exptime + process_started); + (intmax_t)it->exptime + process_started); if (bufcurr + len + 6 > memlimit) /* 6 is END\r\n\0 */ break; memcpy(buffer + bufcurr, temp, len); @@@@ -576,13 +576,13 @@@@ void item_stats(ADD_STAT add_stats, void if (settings.expirezero_does_not_evict) APPEND_NUM_FMT_STAT(fmt, n, "number_noexp", "%u", lru_size_map[3]); } - APPEND_NUM_FMT_STAT(fmt, n, "age", "%u", age); + APPEND_NUM_FMT_STAT(fmt, n, "age", "%jd", age); APPEND_NUM_FMT_STAT(fmt, n, "evicted", "%llu", (unsigned long long)totals.evicted); APPEND_NUM_FMT_STAT(fmt, n, "evicted_nonzero", "%llu", (unsigned long long)totals.evicted_nonzero); APPEND_NUM_FMT_STAT(fmt, n, "evicted_time", - "%u", totals.evicted_time); + "%jd", totals.evicted_time); APPEND_NUM_FMT_STAT(fmt, n, "outofmemory", "%llu", (unsigned long long)totals.outofmemory); APPEND_NUM_FMT_STAT(fmt, n, "tailrepairs", @ 1.9 log @Changes 1.4.25: Automake improvements Misc documentation fixes Misc updates to startup scripts lru_crawler enable blocks until ready (test failure) Record and report on time spent in listen_disabled (time_in_listen_disabled_us) Update manpage for -I command. Make it more clear Fix display of settings.hot_lru_pct in stats settings No longer edits the output of ps while processing arguments No longer crashes when failing to give arguments to some start args Fix memcached unable to bind to an ipv6 address No longer attempts bind to same interface more than once fixed libevent version check: add the missing 1.0.x version check fix off-by-one in LRU crawler, causing rare segfault remove another invalid assert(), fixes clang and pedantic compilation @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.8 2015/05/21 14:07:10 rodent Exp $ @ 1.9.10.1 log @Pullup ticket #5214 - requested by maya devel/memcached: security fix Revisions pulled up: - devel/memcached/Makefile 1.53 - devel/memcached/distinfo 1.27 - devel/memcached/patches/patch-Makefile.am deleted - devel/memcached/patches/patch-aa deleted - devel/memcached/patches/patch-ab deleted - devel/memcached/patches/patch-items.c 1.1 - devel/memcached/patches/patch-logger.h 1.1 --- Module Name: pkgsrc Committed By: adam Date: Thu Feb 16 11:10:53 UTC 2017 Modified Files: pkgsrc/devel/memcached: Makefile distinfo Added Files: pkgsrc/devel/memcached/patches: patch-items.c patch-logger.h Removed Files: pkgsrc/devel/memcached/patches: patch-Makefile.am patch-aa patch-ab Log Message: Changes 1.4.34: Add -o modern switches to -h metadump: Fix preventing dumping of class 63 Fix cache_memlimit bug for > 4G values metadump: ensure buffer is flushed to client before finishing Number of small fixes/additions to new logging add logging endpoint for LRU crawler evicted_active counter for LRU maintainer stop pushing NULL byte into watcher stream Scale item hash locks more with more worker threads (minor performance) Further increase systemd service hardening Missing necessary header for atomic_inc_64_nv() used in logger.c (solaris) Fix print format for idle timeout thread Improve binary sasl security fixes Fix clang compile error Widen systemd caps to allow maxconns to increase Add -X option to disable cachedump/metadump Don't double free in lru_crawler on closed clients Fix segfault if metadump client goes away @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.9 2015/12/08 17:41:56 adam Exp $ @ 1.8 log @Add patch to silence compilation warning found on NetBSD with gcc and FreeBSD with clang: format specifies type 'int' but the argument has type 'long' This seems to be fallout from the time_t change patches. Defuzz patches while we're here. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.7 2014/04/25 09:27:37 wiz Exp $ d5 1 a5 1 --- items.c.orig 2015-01-01 07:50:52.000000000 +0000 d7 1 a7 1 @@@@ -440,9 +440,9 @@@@ char *do_item_cachedump(const unsigned i d19 16 a34 16 @@@@ -506,13 +506,13 @@@@ void do_item_stats(ADD_STAT add_stats, v continue; } APPEND_NUM_FMT_STAT(fmt, i, "number", "%u", sizes[i]); - APPEND_NUM_FMT_STAT(fmt, i, "age", "%u", current_time - tails[i]->time); + APPEND_NUM_FMT_STAT(fmt, i, "age", "%jd", current_time - tails[i]->time); APPEND_NUM_FMT_STAT(fmt, i, "evicted", "%llu", (unsigned long long)itemstats[i].evicted); APPEND_NUM_FMT_STAT(fmt, i, "evicted_nonzero", "%llu", (unsigned long long)itemstats[i].evicted_nonzero); APPEND_NUM_FMT_STAT(fmt, i, "evicted_time", - "%u", itemstats[i].evicted_time); + "%jd", itemstats[i].evicted_time); APPEND_NUM_FMT_STAT(fmt, i, "outofmemory", "%llu", (unsigned long long)itemstats[i].outofmemory); APPEND_NUM_FMT_STAT(fmt, i, "tailrepairs", @ 1.7 log @Update to 1.4.18: Stats conns New "stats conns" command, which will show you what currently open connections are up to, how idle they've been, etc. Starttime Hash Algorithm Selection The jenkins hash was getting a little long in the tooth, and we might want to add specific hash algorithms for different platforms in the future. This makes it selectable in some sense. We've initially added murmur3 hash to the lineup and that seems to run a tiny bit faster in some tests. -o hash_algorithm=murmur3 LRU Crawler A new background thread emerges! Currently experimental, so the syntax might change. If you run into bugs please let us know (though it's been testing fine in torture tests so far). If you wish to clean your slab classes of items which have been expired, either one-time or periodically, this will do it with low impact as a background operation. Currently it requires kicking off a crawl via manual command: First, enable the thread: lru_crawler enable or use -o lru_crawler as a starttime option. lru_crawler crawl 1,3,5 ... would crawl slab classes 1,3,5 looking for expired items to add to the freelist. This is generally not useful or required, unless you have memory with very mixed TTLs, you do not fetch items frequently enough or otherwise cause them to expire, and you don't want items with longer TTLs block reclaiming expired items, or to be evicted early. Future uses of the thread should allow examining and purging items via a plugin interface: IE crawl all items matching some string and remove them, or count them. It is simple to modify to experiment with as of now. See doc/protocol.txt for full explanation of related commands and counters. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.6 2012/02/25 20:52:53 mspo Exp $ d5 1 a5 1 --- items.c.orig 2014-04-17 22:59:33.000000000 +0000 d7 1 a7 1 @@@@ -409,9 +409,9 @@@@ char *do_item_cachedump(const unsigned i d19 1 a19 1 @@@@ -472,13 +472,13 @@@@ void do_item_stats(ADD_STAT add_stats, v @ 1.6 log @1.4.8: Feature and bugfix release. New Touch commands, counters, and a change to connection limit functionality. *Touch Commands *Binary Touch/GAT commands were backported from 1.6. *New GATK/GATKQ commands were added for completeness. *Finally, an Ascii protocol touch command was also added. *Fast Connection Limit Handling *Internal Hash Table *New Stats: expired_unfetched, evicted_unfetched 1.4.9: Small bugfix release. Mainly fixing a critical issue where using -c to increase the connection limit was broken in 1.4.8. If you are on 1.4.8, an upgrade is highly recommended. 1.4.10: This release is focused on thread scalability and performance improvements. This release should be able to feed data back faster than any network card can support as of this writing. 1.4.11: Memcached 1.4.11. Fixes race conditions and crashes introduced in 1.4.10. Adds the ability to rebalance and reassign slab memory. *Slab Reassign *Slab Automove *New Stats: slab_reassign_running, slabs_moved 1.4.12: Fix a small number of bugs, mostly in building on different platforms. 1.4.13: Really tiny release with some important build fixes which were accidentally omitted from 1.4.12. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2011/10/03 11:53:11 adam Exp $ d5 1 a5 1 --- items.c.orig 2012-02-25 20:16:35.000000000 +0000 d7 1 a7 1 @@@@ -379,9 +379,9 @@@@ char *do_item_cachedump(const unsigned i d19 1 a19 1 @@@@ -419,13 +419,13 @@@@ void do_item_stats(ADD_STAT add_stats, v a34 1 @ 1.5 log @Changes 1.4.7: * Use a monotonically increasing timer * Immediately expire items when given a negative expiration time * Fix memcached-tool to print about all slabs * Properly daemonize memcached for debian * Don't permanently close UDP listeners on error * Allow memcached-init to start multiple instances (not recommended) * Issue 214: Search for network libraries before searching for libevent * Issue 213: Search for clock_gettime in librt * Issue 115: accont for CAS in item_size_ok * Fix incredibly slim race for maxconns handler. Should no longer hang ever * Issue 183: Reclaim items dead by flush_all * Issue 200: Don't fire dtrace probe as the last thing in a function @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- items.c.orig 2011-08-10 15:44:52.000000000 +0000 d7 1 a7 1 @@@@ -383,9 +383,9 @@@@ char *do_item_cachedump(const unsigned i d19 1 a19 1 @@@@ -429,13 +429,13 @@@@ void do_item_stats(ADD_STAT add_stats, v d23 2 a24 2 - APPEND_NUM_FMT_STAT(fmt, i, "age", "%u", tails[i]->time); + APPEND_NUM_FMT_STAT(fmt, i, "age", "%jd", tails[i]->time); d26 1 a26 1 "%u", itemstats[i].evicted); d28 1 a28 1 "%u", itemstats[i].evicted_nonzero); d33 1 a33 1 "%u", itemstats[i].outofmemory); d35 1 @ 1.4 log @Updated to release 1.4.4. Release notes: http://code.google.com/p/memcached/wiki/ReleaseNotes144 Reviewed by @ text @d3 1 a3 1 Make it compile on NetBSD and Solaris. Patch taken from memcached git. d5 30 a34 49 --- util.c.orig 2009-10-23 20:38:01.000000000 +0000 +++ util.c @@@@ -8,6 +8,10 @@@@ #include "memcached.h" +/* Avoid warnings on solaris, where isspace() is an index into an array, + * and gcc uses signed chars */ +#define xisspace(c) isspace((unsigned char)c) + bool safe_strtoull(const char *str, uint64_t *out) { assert(out != NULL); errno = 0; @@@@ -16,7 +20,7 @@@@ bool safe_strtoull(const char *str, uint unsigned long long ull = strtoull(str, &endptr, 10); if (errno == ERANGE) return false; - if (isspace(*endptr) || (*endptr == '\0' && endptr != str)) { + if (xisspace(*endptr) || (*endptr == '\0' && endptr != str)) { if ((long long) ull < 0) { /* only check for negative signs in the uncommon case when * the unsigned number is so big that it's negative as a @@@@ -39,7 +43,7 @@@@ bool safe_strtoll(const char *str, int64 long long ll = strtoll(str, &endptr, 10); if (errno == ERANGE) return false; - if (isspace(*endptr) || (*endptr == '\0' && endptr != str)) { + if (xisspace(*endptr) || (*endptr == '\0' && endptr != str)) { *out = ll; return true; } @@@@ -59,7 +63,7 @@@@ bool safe_strtoul(const char *str, uint3 return false; } - if (isspace(*endptr) || (*endptr == '\0' && endptr != str)) { + if (xisspace(*endptr) || (*endptr == '\0' && endptr != str)) { if ((long) l < 0) { /* only check for negative signs in the uncommon case when * the unsigned number is so big that it's negative as a @@@@ -83,7 +87,7 @@@@ bool safe_strtol(const char *str, int32_ long l = strtol(str, &endptr, 10); if (errno == ERANGE) return false; - if (isspace(*endptr) || (*endptr == '\0' && endptr != str)) { + if (xisspace(*endptr) || (*endptr == '\0' && endptr != str)) { *out = l; return true; } @ 1.3 log @Update devel/memcached from 1.2.1 to 1.2.2: 2007-04-16 Steven Grimm * Command tokenizer performance and cleanliness improvement. Patch contributed by Paolo Borelli . 2007-04-16 Paul Lindner * Add notes to README about MacOS, libevent and kqueue. * Windows Patch integration -- part 1, warnings elimination. 2007-04-12 Paul Lindner * Allow changes to the verbosity level of the server with a new "verbosity" command and some compiler cleanups. Patch contributed by Paolo Borelli . 2007-04-08 Paul Lindner * Add cleanup patch from "Tim Yardley" to clean up source spacing issues, fix -Wall warnings, add some null checks, adds asserts at the top of each function for any use of conn *c without checking to see if c is NULL first. * Also adjust clean-whitespace.pl to clean *.ac files. Add script to test-suite to test for tabs. 2007-04-04 Paul Lindner * Add clarification of flush_all in the protocol docs from Elizabeth Mattijsen 2007-03-31 Paul Lindner * Add patch from Eli Bingham to re-enable the -n switch to memcached. 2007-03-20 Paul Lindner * Add patch to collect eviction statistics from Jean-Francois BUSTARRET . * Updated docs, added new test cases for t/stats.t 2007-03-18 Paul Lindner * Add more test cases using larger buffer sizes up to and greater than 1MB. * Remove unused parameter to item_size_ok() * Use a single printf() in usage() * Add a failing test for conforming with maximum connections. 2007-03-17 * crash fix from Thomas van Gulick in conn_shrink(), passing &ptr, instead of ptr to realloc(). 2007-03-05 Paul Lindner * Fix a number of places where (s)printf calls were using unsigned or signed formats that did not match their arguments. * Add support for stdbool.h and stdint.h to use the bool and uint8_t types. * Major refactoring - move API calls for assoc/items/slabs to their own individual header files. Add apropriate const and static declarations as appropriate. * Avoid type-punning. Do a more efficient realloc inside the conn_shrink routine. * Fix overflow bug where uninitialized access to slabclass caused size-0 mallocs during slab preallocation. * Use EXIT_SUCCESS/EXIT_FAILURE constants. * Convert some sprintf calls to snprintf to protect against buffer overflows. * Explicitly compare against NULL or zero in many places. 2007-03-05 * Steven Grimm : Per-object-type stats collection support. Specify the object type delimiter with the -D command line option. Turn stats gathering on and off with "stats detail on" and "stats detail off". Dump the per-object-type details with "stats detail dump". 2007-03-01 * Steven Grimm : Fix an off-by-one error in the multithreaded version's message passing code. 2006-12-23 * fix expirations of items set with absolute expiration times in the past, before the server's start time. bug was introduced in 1.2.0 with rel_time_t. Thanks to Adam Dixon for the bug report and test case! @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.2 2007/02/27 11:29:19 grant Exp $ d3 36 a38 7 --- memcached.c.orig 2007-08-20 16:54:17.000000000 +0100 +++ memcached.c @@@@ -45,6 +45,7 @@@@ std * #include #include #include +#include d40 14 a53 2 #ifdef HAVE_MALLOC_H /* OpenBSD has a malloc.h, but warns to use stdlib.h instead */ @ 1.2 log @update memcached to 1.2.1. changes since 1.1.12: 2006-11-26 * Steven Grimm : Performance improvements: Dynamic sizing of hashtable to reduce collisions on very large caches and conserve memory on small caches. Only reposition items in the LRU queue once a minute, to reduce overhead of accessing extremely frequently-used items. Stop listening for new connections until an existing one closes if we run out of available file descriptors. Command parser refactoring: Add a single-pass tokenizer to cut down on string scanning. Split the command processing into separate functions for easier profiling and better readability. Pass key lengths along with the keys in all API functions that need keys, to avoid needing to call strlen() repeatedly. 2006-11-13 * Iain Wade : Fix for UDP responses on non-"get" commands. 2006-10-13 * Steven Grimm : New faster hash function. 2006-09-20 * don't listen on UDP by default; more clear message when UDP port in use 2006-09-09 * release 1.2.0 (along with 1.1.13, which is the more tested branch) 2006-09-02 * Nathan Neulinger : fix breakage in expiration code causing expiration times to not be processed correctly. 2006-08-21 * Nathan Neulinger : fix incompatabilities with unix domain socket support and the UDP code and clean up stale sockets 2006-08-20 * Nathan Neulinger : unix domain socket support 2006-05-03 * Steven Grimm : big bunch of changes: big CPU reduction work, UDP-based interface, increased memory efficiency. (intertwined patch, committed all together) or see svn commit logs 2005-08-09 * Elizabeth Mattijsen : needed a way to flush all memcached backend servers, but not at exactly the same time (to reduce load peaks), I've added some simple functionality to the memcached protocol in the "flush_all" command that allows you to specify a time at which the flush will actually occur (instead of always at the moment the "flush_all" command is received). 2005-05-25 * patch from Peter van Dijk to make stderr unbuffered, for running under daemontools @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- memcached.c.orig 2006-12-05 20:34:10.000000000 +1100 d5 2 a6 2 @@@@ -49,6 +49,7 @@@@ #include @ 1.1 log @Initial revision @ text @d3 3 a5 4 --- memcached.c.orig 2005-02-08 15:26:55.000000000 +0100 +++ memcached.c 2005-02-08 15:27:09.000000000 +0100 @@@@ -42,6 +42,7 @@@@ #include d8 1 d12 1 a12 1 #include @ 1.1.1.1 log @Initial import of memcached-1.1.11. memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. @ text @@