The NetBSD Project

CVS log for pkgsrc/devel/memcached/Makefile

[BACK] Up to [] / pkgsrc / devel / memcached

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.87 / (download) - annotate - [select for diffs], Sat Jun 17 12:10:59 2023 UTC (3 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2023Q2-base, pkgsrc-2023Q2, HEAD
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored)

memcached: updated to 1.6.21

Memcached 1.6.21

Bugfix and community contribution release. As usual most fixes are for the new proxy code, along with a lot of community contributed tests for proxy.

A data corruption issue for extstore was fixed. Requires overriding item_age to a low number of seconds and re-writing the same keys frequently.

Fixes a meta protocol ms bug introduced in 1.6.20 with the s flag being returned when only asking for the c (cas) flag.

Fixes a compilation issue for proxy due to build artifacts being accidentally included into the release tarball.


build: avoid disting build artifacts from vendor/*
extstore: fix data bugs on high overwrite key
proxy: fixes for memory tracking
meta: fix ms c flag reflecting s flag
extstore: fail to start if given no disk space
extstore: Handle incorrect units gracefully
proxy: mcp.internal() support ascii multiget
proxy: fix segfault for reqs with too few tokens
proxy: fix per-worker-thread backend mode batching
proxy: fix meta set M flag for mcp.internal()
proxy: add await tests in proxyunits.t
proxy: add response API tests in proxyunits.t

Revision 1.86 / (download) - annotate - [select for diffs], Wed May 17 16:54:22 2023 UTC (4 months, 1 week ago) by adam
Branch: MAIN
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored)

memcached: updated to 1.6.20

Memcached 1.6.20


Lots of fixes and updates for Proxy mode. Optimization for extstore disk flushing to alleviate excess evictions. Changes to meta protocol and smaller fixes.


extstore: increase aggressiveness of flush thread
proxy: improve unit test coverage
proxy: random small fixes
proxy: return 'readvalidate' on be read timeout
proxy: don't print null ustats from "stats proxy"
proxy: use connect timeout during retries
proxy: fix flaky test in proxyconfig.t
Add a debian dockerfile, as well as upgrade the autoconf dependency
check for sys/auxv.h
proxy: send CLIENT_ERROR when proper
proxy: print lua error message on reload failure
proxy: rip out io_uring code (to be re-added later)
proxy: overhaul backend error handling: surface error messages to clients
proxy: fix reversal of pipelined backend queries
proxy: add request and buffer memory limits
proxy: restrict functions for lua config vs route
proxy: fix bug ignoring -R setting for proxy reqs
proxy: add conntimeout error

New Features

proxy: add memory accounting tracking

Revision 1.85 / (download) - annotate - [select for diffs], Thu Mar 9 07:38:48 2023 UTC (6 months, 2 weeks ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1
Changes since 1.84: +2 -2 lines
Diff to previous 1.84 (colored)

memcached: updated to 1.6.19

Memcached 1.6.19

Many fixes and new features for the Proxy feature. Rest are small fixes or code cleanups to the cache daemon. If you're trying out the Proxy code, please upgrade or continue to track the next branch.

If you use the lru_crawler metadump hash command, specifically the hash mode, there is a fix for potential slowdowns.

-Werror is no longer the default when compiling. Add --enable-werror to restore the feature.

Revision 1.84 / (download) - annotate - [select for diffs], Mon Jan 30 07:59:12 2023 UTC (7 months, 3 weeks ago) by adam
Branch: MAIN
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored)

memcached: updated to 1.6.18



Mostly fixes and improvements to proxy mode.

Meta protocol has some adjusments: extra spaces were being returns in a few instances. If your client is looking for an exact number of spaces in meta responses please take note. We regret the error.


core: do not stop threads on SIGINT/SIGTERM
core: remove printf from signal handlers
proxy: iterate modified request handling
proxy: expose resp:elapsed()
proxy: log time now relative to resp lifetime
proxy: fix crash in await during SIGHUP reloads
proxy: fix lifecycle of backend connections
proxy: IO thread performance improvements
proxy: add mcp.AWAIT_BACKGROUND
proxy: fix lua registry corruption on data chunk error
proxy: add proxy_await_active stat
proxy: fix partial response read handling
proxy: fix flushing partial writes
proxy: add more backend failure messages
proxy: fix mcp.log_req crash on nil res
core: fix tagged listeners for len < 8
proxy: add debug symbols to lua build
core: give threads unique names
proxy: fix crash when backends are gc'd
remove libevent license from usage
Fixes to build with clang-15:
meta: remove meta_response_old start option
meta: allow mg without flags + reflect O/k on EN
meta: meta arithmetic command had excess spaces
meta: remove excess spaces from meta responses
proxy: fix bugs with backend connection initialization
Fix log timestamps after 2038
Fix function protypes for clang errors
proxy: add mcp.await FASTGOOD flag

Revision 1.83 / (download) - annotate - [select for diffs], Thu Sep 1 07:06:24 2022 UTC (12 months, 3 weeks ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

memcached: updated to 1.6.17



Release TLS read and write buffers when idle
Find perl via /usr/bin/env instead of directly
Mac M1 build update. detects arm64 crc32 h/w support.
DTrace build fix on Mac
core: fix strncat warning use pkg-config to retrieve openssl
proxy: fix missing md5.h from tarball dist
docs: don't rebuild binprot XML anymore
Do memory bound check for some C string operations
proxy: allow mcp.pool to ignore a nil second arg
Improve Slab Automove behavior
proxy: allow booleans in pool structure
proxy: backend object cache was broken
log: fix obscure crashes due to size_t promotion
Fix race leads to deadlock during shutdown (sigterm/sigusr1)
proxy: req:flag_token("F", "Freplacement")

New Features

sock ip filtering tagging support for FBSD/OBSD
MacOS drop privileges support
core: make large item storage more reliable
extstore: make defaults more aggressive

Revision 1.82 / (download) - annotate - [select for diffs], Thu Aug 4 12:26:19 2022 UTC (13 months, 2 weeks ago) by adam
Branch: MAIN
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored)

memcached: updated to 1.6.16



Minor bugfixes for memcached daemon. Critical bugfixes and API additions for the experimental proxy code (if using, please upgrade)


proxy: add req:flag_token("F")
proxy: mcp.response code and rline API
proxy: add r:has_flag(), fix r:token() length
proxy: mcp.request() improvements
proxy: mcplib_request_token() doesn't delimit the final token in a request
tls: Disable TLS re-negotiation from SSL context
Fix undefined behavior and warning with clang
proxy: fix the hashstring size for evcache ketama
core: Fix FTBFS with GCC 12 on ppc64el
proxy: fix race crash from io obj use-after-free
proxy: fix mcp.await() when using extended args
proxy: add missing errno.h include to proxy.h
proxy: fix potential corruption on partial write
proxy: rework backend buffer handling to fix protocol desync bug
tests: skip whitespace on vendor/*
tls: Add switch to opt-in to kernel TLS on OpenSSL 3.0.0+
core: checks port number at start time
Add a command to dump keys for memcached-tool
proxy: 'proxyreqs' does not work unless 'proxyuser' also provided
proxy: replace proxycmds stream with proxyreqs
proxy: mcp.log_req* API interface

Revision 1.81 / (download) - annotate - [select for diffs], Fri Jul 15 08:11:28 2022 UTC (14 months, 1 week ago) by adam
Branch: MAIN
Changes since 1.80: +2 -3 lines
Diff to previous 1.80 (colored)

memcached: updated to 1.6.15

Memcached 1.6.15


proxy: Fix buffer overflow and prevent recv() of 0 byte
proxy: allow await() to be called recursively
proxy: mcp.request(cmd, [val | resp])
proxy: hacky method of supporting noreply/quiet
proxy: add ring_hash builtin
proxy: fix logger entry memory corruption
storage: parameterize the compaction thread sleep
proxy: pull chunks into individual c files
proxy: documentation updates
proxy: "stats settings" for proxy
proxy: await improvements
proxy: trivial support for SO_KEEPALIVE on backend
mcmc: upstream update for SO_KEEPALIVE
proxy: fix crash on stats proxy sans user stats
proxy: enable backend_total stat
proxy: track in-flight requests
proxy: add some basic logging for backend errors
proxy: logging improvements + lua mcp.log()
proxy: add stats for commands seen

Revision 1.80 / (download) - annotate - [select for diffs], Tue Jun 28 11:31:48 2022 UTC (14 months, 3 weeks ago) by wiz
Branch: MAIN
Changes since 1.79: +2 -1 lines
Diff to previous 1.79 (colored)

*: recursive bump for perl 5.36

Revision 1.79 / (download) - annotate - [select for diffs], Tue Jan 25 19:16:49 2022 UTC (19 months, 3 weeks ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1
Changes since 1.78: +2 -2 lines
Diff to previous 1.78 (colored)

memcached: Update to 1.6.13.

  core: make object cache LIFO
  meta: protocol.txt updates for CAS return
  meta: fix meta delete
  meta: fix CAS ('c') return values
  core: fix use-after-free for text multigets
  Replace OPENSSL_VERSION_NUMBER check with defined(TLS1_3_VERSION) check
    for TLS v1.3 compatibility
  Fix full unit test suite under test_tls
  Track store errors in thread stats
  Fix for failing tests on OS X
  extstore: avoid looping IO queues on submission
  tests: maxconns test when extstore enabled
  core: remove cdefs include from queue.h

New Features:
  The primary feature in development at this time is the proxy. Work can be
  tracked here: - As this
  stabilizes formal documents will be written. If you're curious about the
  feature please speak up as we are looking for testers and contributors!

Revision 1.78 / (download) - annotate - [select for diffs], Wed Sep 29 07:29:12 2021 UTC (23 months, 3 weeks ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored)

memcached: updated to 1.6.12

Memcached 1.6.12
Fixes a missing file from the 1.6.11 release.

Memcached 1.6.11
Bugfixes, potential performance improvements, improvements to logging. Includes some upstreamed changes for an upcoming feature.

Revision 1.77 / (download) - annotate - [select for diffs], Mon Aug 2 05:58:19 2021 UTC (2 years, 1 month ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3
Changes since 1.76: +2 -3 lines
Diff to previous 1.76 (colored)

memcached: updated to 1.6.10



Fix minor severity heap buffer overflow reading --auth-file
stats_prefix.c: Check for NDEBUG before using total_written variable
Add settings stat for shutdown_command enabled
[docker] Add user and expose the memcached port
meta: remove EXPERIMENTAL mark + doc fixes
meta: response code OK -> HD
meta: fix metaset syntax
meta: repairs to mset command
hash: add XXH3 to list of hash algorithms.
fix arm64 crc32 on old glibc/gcc.
extstore: fix crash on 'stats extstore'
seccomp: extend allowed rules for extended usage
The total number of UDP datagrams required for the message is calculated incorrectly.
meta: allow base64'ed binary keys with 'b' flag
small improvements to readme
Added debugtime command for test suite

New Features

The meta protocol can now transmit binary encoded keys by encoding the key in base64 and sending a 'b' flag with the command. If for example your key composes of several large numerics (userids and so on), these can be encoded directly as binary. This shortens the key which can save some memory on the server. See doc/protocol.txt for more details.

Revision 1.76 / (download) - annotate - [select for diffs], Mon May 24 19:50:02 2021 UTC (2 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2021Q2-base, pkgsrc-2021Q2
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored)

*: recursive bump for perl 5.34

Revision 1.75 / (download) - annotate - [select for diffs], Mon Nov 23 20:11:24 2020 UTC (2 years, 9 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

memcached: Update to 1.6.9

This change has a few useful new features, along with a lot of bugfixes and some internal code reorganization for future projects. We have been questing to improve test quality and stamp down bugs that came in over the 1.6 series.

As usual many thanks to the numerous contributors who sent in patches or helped test this release!


    crawler: remove bad mutex unlock during error
    idle_timeout: avoid long hangs during shutdown
    extstore: use fcntl locking on disk file
    portability fix for getsubopt
    illumos build fixes + require libevent2
    core: generalize extstore's defered IO queue
    fix connection limit tests
    logger: fix spurious watcher hangups
    watcher.t: reduce flakiness
    Extend test CA validity to 500 years
    adjust "t/idle-timeout.t" be more forgiving

New Features

    arm64: Re-add arm crc32c hw acceleration for extstore
    restart mode: expose memory_file path in stats settings
    'shutdown graceful' command for raising SIGUSR1
    Introduce NAPI ID based worker thread selection (see doc/napi_ids.txt)
    item crawler hash table walk mode

Revision 1.74 / (download) - annotate - [select for diffs], Tue Oct 27 10:24:55 2020 UTC (2 years, 10 months ago) by adam
Branch: MAIN
Changes since 1.73: +2 -2 lines
Diff to previous 1.73 (colored)

memcached: updated to 1.6.8

Memcached 1.6.8

Small security related release. A remote crash is possible if UDP is enabled. The remediation is to upgrade or disable UDP. The crash was introduced in the 1.6 series.

UDP has not been enabled by default for years and it has no authentication or security, so it most users should not have a high exposure to this bug.

This also includes two minor fixes.

* Improve opening of authentication file
* Fix over-freeing in internal object cache
* udp: crash fix when receiving multi-packet uploads

Revision 1.73 / (download) - annotate - [select for diffs], Tue Sep 8 17:59:45 2020 UTC (3 years ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3
Changes since 1.72: +2 -3 lines
Diff to previous 1.72 (colored)

memcached: updated to 1.6.7

Memcached 1.6.7


Mainly a bugfix release. -o resp_obj_mem_limit is deprecated, as the memory is all pooled from read_buf_mem_limit now. Almost all connection memory is now managed by this one tunable.

Fixes a bug preventing 1.6 series to work properly on OS X. Improves automated slab rebalancing for bursty writes.

Contains code refactors and fixes related to future work. Should not have any functional changes.


Dockerfile - allow override of config opts
Improve page balancing when writes are bursty
main: split binary protocol into proto_bin.c
main: split text protocol into proto_text.c
add openssl errors to SSL certificate loading error messages
skip setting the resource limits in debug builds
Use signal function instead of sigignore
fixing the basic tls test so it exits correctly when fails
net: remove most response obj cache related code
net: carve response buffers from read buffers
Do not join lru and slab maintainer threads if they do not exist
Restore SAN entries in testing TLS certificates
Changed code using strtol to use safe_strtol wrapper
Fix TCP failure under OS X.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Aug 31 18:07:24 2020 UTC (3 years ago) by wiz
Branch: MAIN
Changes since 1.71: +2 -1 lines
Diff to previous 1.71 (colored)

*: bump PKGREVISION for perl-5.32.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jun 1 19:14:48 2020 UTC (3 years, 3 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored)

memcached: updated to 1.6.6



Update testing certificates to be compatible with latest security levels
Fix crash on shutdown when handling signals with TLS enabled
start of valgrind test mode
more flaky test fixes; crawler/restart
Disable aarch64 hw crc32 function for now
Pull in BigEndian-compatible crc32c
minimum libevent version is 2.x
Add Meta no-op command request to protocol.txt



Revert "build: sasl build fix on FreeBSD"



restart: fix failure on deleted chunked items
ascii auth: fix CPU spike when waiting for data
extstore: fix some valgrind errors.
Fix undefined behavior with -D_FORTIFY_SOURCE=2
Fix build warnings in Windows.
Add build option to disable unix socket functionality.
fix extstore reads for OSX/cygwin
Fix misprint in protocol.txt
Fix t/64bit.t test failure in Windows.
build: sasl build fix on FreeBSD
testapp: Fix failure with -flto=auto



crash fix: errstr wasn't initialized in metaget
fix startup segfault for low conns + idle thread
restart: fix corrupted restart in some scenarios
restart: always wipe memory from global pool
restart: fix rare segfault on shutdown
tls: fix crash with refresh_certs command when TLS is disabled

New Features
-o ssl_session_cache can be used (when TLS is compiled in) to enable server side session reuse.
./configure --enable-static for static builds


Fixes a remote DoS (segfault) in parsing of the binary protocol header that was introduced in 1.6.0.



tls: handle accept errors properly
ssl_errors stat
Add touch,gat expiration test
Add negative expiration time case to expiration test
Fix to handle negative exptime as common function
Fix a bunch of flaky tests
Fix compile error with DTrace probes
Allow missing syscall on ARM for seccomp
fix multiple definition of 'crc32c' (GCC 10)
Add stdio.h,stddef.h to storage.c (OS X compile error)



meta: indicate refcount overflow
meta: fix refleak in mget
fix: all new connections were counted as rejected
timedrun: proper signal handler initialization.
restart: fix potential double free
stats_prefix: fix test failure due to non-determinism
fix bug where sasl will load config the wrong path
meta: make return codes more generic
config.h for util.c, fix htonll comp. failure
hash: fix build failure against gcc-10
fix memory leaks in unit tests
fix make order in BUILD instructions

New Features

extstore: enable by default.
meta: arithmetic command (ma) for incr/decr
network: transient static read buffer for conns
network: response stacking for all commands

Revision 1.70 / (download) - annotate - [select for diffs], Wed Jan 22 18:53:13 2020 UTC (3 years, 8 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1
Changes since 1.69: +3 -4 lines
Diff to previous 1.69 (colored)

memcached: updated to 1.5.21

Memcached 1.5.21

Bugfixes and smaller changes. Thanks to all the external contributors!

Adding missing defaults to the --help output
stats: Fix stats delimiter unit tests
Allow compilation with ASAN
restart: add error handling if mmap fails
For text auth token mode, use alternative bcmp implementation
memcached-tool: Fix up tabular output for the 'stats' command.
linux_priv.c: add termios.h include to fix powerpc(64) builds
Update the build documentation in BUILD file
Update documentation for --max-item-size
Fix build issue due to improper pthread_t comparison
Ensure t/whitespace.t test is skipped when outside a memcached git checkout
Allocating large chunk of slabs for FreeBSD.

New Features
configuration option to disable watch commands (-W)

Revision 1.69 / (download) - annotate - [select for diffs], Sat Jan 18 21:49:12 2020 UTC (3 years, 8 months ago) by jperkin
Branch: MAIN
Changes since 1.68: +2 -1 lines
Diff to previous 1.68 (colored)

*: Recursive revision bump for openssl 1.1.1.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Nov 11 17:29:50 2019 UTC (3 years, 10 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)

memcached: updated to 1.5.20

Memcached 1.5.20

Bugfix release.

Security issue: When enabling SASL authentication for binary protocol, enabling UDP mode would allow bypassing SASL. Now refuses to start with both UDP and SASL enabled. Text mode authentication was not vulnerable.

Includes a performance improvement for page rebalancing. Full discussion here: - in some circumstances, page will be moved between slab classes much faster than before.


Security fix: Don't allow UDP with binprot SASL
Remove multiple double-initializations of condition variables and mutexes
Fix data race in assoc_start_expand
Use a proper data type for settings.sig_hup
restart: add error handling when a tag is not found in a metadata file.
doc: Update rfc2629.dtd, use local copy, fix error, and fix warning
doc: Fix out-of-tree build
slab rebalance performance improvements
fix potential deadlock bug in log watcher
Support running tests in out-of-tree build
configure: Fix cross-compilation errors
DTrace build fix

Revision 1.67 / (download) - annotate - [select for diffs], Sun Nov 3 10:39:20 2019 UTC (3 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.66: +5 -5 lines
Diff to previous 1.66 (colored)

devel: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

No manual corrections.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Oct 1 18:17:24 2019 UTC (3 years, 11 months ago) by adam
Branch: MAIN
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored)

memcached: updated to 1.5.19

Memcached 1.5.19

This release contains an experimental new protocol extension for the default Text Protocol. This extension includes a flexible set of new commands encompassing features previously unique to the binary protocol, as well as many new updates allowing a reduction of network roundtrips for advanced features.


Keep "last access" time up to date in default segmented LRU mode
slow down t/watcher.t test more
Add include stdio.h to restart.c
Reload CA cert in refresh routine
TLS: fix leak of SSL context on accept failure
drop privileges for FreeBSD.
Make memcached setgroups failure non-fatal
restart: use /tmp for restart tests.
restart: add missing msync at close time

Revision 1.65 / (download) - annotate - [select for diffs], Fri Sep 20 11:38:53 2019 UTC (4 years ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

memcached: updated to 1.5.18

Memcached 1.5.18 and newer can recover its cache between restarts. It can restart after upgrades of the binary, most changes in settings, and so on. It now also supports using persistent memory via DAX filesystem mounts.

Revision 1.64 / (download) - annotate - [select for diffs], Thu Sep 5 09:34:51 2019 UTC (4 years ago) by adam
Branch: MAIN
Changes since 1.63: +2 -3 lines
Diff to previous 1.63 (colored)

memcached: updated to 1.5.17

fix strncpy call in stats conns to avoid ASAN violation
extstore: fix indentation
add error handling when calling dup function
add unlock when item_cachedump malloc failed
extstore: emulate pread(v) for macOS
fix off-by-one in logger to allow CAS commands to be logged.
use strdup for explicitly configured slab sizes
move mem_requested from slabs.c to items.c (internal cleanup)

New Features
add server address to the "stats conns" output
log client connection id with fetchers and mutations
Add a handler for seccomp crashes

Revision 1.63 / (download) - annotate - [select for diffs], Sun Aug 11 13:18:46 2019 UTC (4 years, 1 month ago) by wiz
Branch: MAIN
Changes since 1.62: +2 -1 lines
Diff to previous 1.62 (colored)

Bump PKGREVISIONs for perl 5.30.0

Revision 1.62 / (download) - annotate - [select for diffs], Sun May 26 19:37:42 2019 UTC (4 years, 3 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q2-base, pkgsrc-2019Q2
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

memcached: updated to 1.5.16

Fixes critical potential segfault/memory corruption bug in 1.5.15 when storing items with client flags of "0". Bug only exists in 1.5.15, and the fix is the only change in this release.

* When nsuffix is 0 space for flags hasn't been allocated so don't memcpy them.

A couple small bugfixes, and two notable changes. An authentication mode for ASCII protocol, and removal of a minor feature flag.

-o inline_ascii_response was a compatability mode which was disabled since 1.5.0; it uses 10-20 more bytes of memory to speed up ASCII responses. Since we switched from snprintf to a fast itoa implementation years ago it was disabled by default. Now the option is gone.

Binary protocol was also not honoring the idle-timeout feature. This should now be fixed.

* Speed up incr/decr by replacing snprintf.
* Use correct buffer size for internal URI encoding.
* change some links from http to https
* Fix small memory leak in testapp.c.
* free window_global in slab_automove_extstore.c
* remove inline_ascii_response option
* -Y [filename] for ascii authentication mode
* fix: idle-timeout wasn't compatible with binprot

New Features
-Y [authfile] enables an authentication mode for ASCII protocol. See doc/protocol.txt for the most up to date information. This feature is experimental; there's a small chance it could change based on community feedback. Unlike the SASL authentication for binary protocol, this is built in by default and has no external dependencies. It is also far simpler to use; we get a constant slow trickle of support requests around SASL authentication.

When enabled, UDP and binary protocols are also disabled.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Apr 30 11:39:17 2019 UTC (4 years, 4 months ago) by adam
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

memcached: updated to 1.5.14

Bugfix release. No new features. Fix an extstore test failure introduced in 1.5.13. All other bugs are trivial or older.

update -h output for -I (max item size)
fix segfault in "lru" command
fix compile error on centos7
extstore: error adjusting page_size after ext_path
extstore: fix segfault if page_count is too high.
close delete + incr item survival race bug
FreeBSD superpages checking.
FreeBSD capabilities support.
memcached-tool dump fix loss of exp value
Add optional feature support to RPM package building
Fix "qw" in "" so wait_ext_flush is exported properly

Revision 1.60 / (download) - annotate - [select for diffs], Tue Apr 16 07:50:19 2019 UTC (4 years, 5 months ago) by adam
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

memcached: updated to 1.5.13

- Basic implementation of TLS for memcached.
- Improve Get And Touch documentation

New Features
- TLS support!

Revision 1.59 / (download) - annotate - [select for diffs], Sun Nov 4 08:34:04 2018 UTC (4 years, 10 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

memcached: updated to 1.5.12

Memcached 1.5.12

Single bugfix release. Fixes a refcount leak that could happen when attempting to run incr/decr against a:

* 0 byte value
* CHUNKED (> 512k) item
* extstore item that has been flushed to disk

fix INCR/DECR refcount leak for invalid items

Revision 1.58 / (download) - annotate - [select for diffs], Tue Oct 30 12:00:05 2018 UTC (4 years, 10 months ago) by adam
Branch: MAIN
Changes since 1.57: +2 -3 lines
Diff to previous 1.57 (colored)

memcached: updated to 1.5.11

Memcached 1.5.11
Fixes broken test and small extstore optimization.
* extstore: balance IO thread queues
* t/lru-maintainer.t: check for WARM item earlier, fixing race condition on some platforms.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Aug 22 09:43:33 2018 UTC (5 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3
Changes since 1.56: +2 -1 lines
Diff to previous 1.56 (colored)

Recursive bump for perl5-5.28.0

Revision 1.56 / (download) - annotate - [select for diffs], Sun Mar 4 11:45:01 2018 UTC (5 years, 6 months ago) by he
Branch: MAIN
CVS Tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

Update memcached to version 1.5.6.

Changes for 1.5.6:
  Main change is disabling UDP to prevent abuse in reflector attack
   * disable UDP port by default
   * systemd instancing support & rpm build improvements
   * fix gcc warnings in beta GCC
   * fix build with clang
   * fix for dtrace compilation on freebsd
  New Features
   * The RPM specfiles have been greatly improved for systemd installations

Changes for 1.5.5:
   * remove redundant counter/lock from hash table (2% boost for sets)
   * limit crawls for metadumper. avoids dumping too much data.
   * extstore: revise automove algorithm
   * quick fix for slab mover deadlock
   * extstore: fix segfault in 'extstore' admin command
  New Features
   * None.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Dec 21 08:37:14 2017 UTC (5 years, 9 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2017Q4-base, pkgsrc-2017Q4
Changes since 1.54: +4 -3 lines
Diff to previous 1.54 (colored)

memcached: updated to 1.5.4

New external storage (flash) shim. Still experimental and a little hard to tune, but generally stable and well tested.

* make -I argument less position dependent
* external storage base commit
* lru_crawler metadump output ends with "END\r\n"
* fix: -o no_lru_crawler didn't work

New Features
extstore, a cleverly named external storage shim, is an addon for using flash drives to expand cache storage.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Nov 14 14:13:52 2017 UTC (5 years, 10 months ago) by fhajny
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

Update devel/memcached to 1.5.3.


- Add warning about time on very low TTL's in doc/protocol.txt
- pledge privdropping support for OpenBSD
- make for loop more clear in logger watcher
- fix theoretical leak in process_bin_stat
- fix use of unitialized array in lru_maintainer
- -o no_hashexpand to disable hash table expansion
- fix chunked items set in binprot, read from ascii

New Features
- adds get and touch command for ascii protocol


- fix more binary protocol documentation errors.
- fix segfault during 31b -> 32b hash table expand
- don't create hashtables larger than 32bit
- some non-user-facing code changes for supporting future features.


- add max_connections stat to 'stats' output
- Drop sockets from obviously malicious command strings (HTTP/)
- stats cachedump: now more likely to show data
- memcached-tool: fix slab Full? column
- fix null pointer ref in logger for bin update cmd
- default to unix sockets for tests, make them much less flaky
- PARALLEL=9 make test -> runs prove in parallel
- fix flaky stats.t test

New Features
- --enable-seccomp compiles in options for strict privilege reduction
  in linux. see output of -h for more information.


- fix for musl libc: avoid huge stack allocation

New Features
- LRU crawler to background-reclaim memory. Mixed-TTL's and LRU
  reordering leaves many holes, making it difficult to properly size
  an instance.
- Segmented LRU. HOT/WARM/COLD and background processing should try
  harder to keep semi-active items in memory for longer.
- Automated slab rebalancing. Avoiding slab stagnation as objects
  change size over time.
- Faster hash table lookups with murmur3 algorithm (though it's been
  so long this is now outdated again;)
- Reduce memory requirements per-item by a few bytes here and there
- Immediately close connections when hitting the connection limit,
  instead of hanging until a spot opens up.
- Items larger than 512k (by default) are assembled by stacking
  multiple chunks together. Now raising the item size above 1m doesn't
  drop memory efficiency by spreading out slab classes.


- fix for CVE-2017-9951
- save four bytes per item if client flags are 0

New Features
- If client flags are "0", no extra storage is used.


- hot_max_age is now hot_max_factor - HOT is now limited to 20% of
  COLD's age or 20% of total space, whichever comes first.
- sleep longer between slab move runs (1ms instead of 50us)
- automove script: improve algo, add basic test
- slab_rebal: delete busy items if stuck
- fix LRU maintainer thread slowdown in edge case
- fix rare long background thread pause in hash expansion


- LRU crawler: avoid running infinitely.
- fix very old memory leak in ASCII multigets. (when using multiget
  gets and keys after the first one are >255 characters)
- remove old slab mover example script.
- fix crash in page mover while using large items
- automover algo python script
- avoid segfault if idle_timeout value is missing.
- fix rare crash in LRU crawler
- sleep more aggressively in some threads
- don't overflow item refcount on get
- fix solaris compilation error
- usability fix for cache_memlimit command
- fix verbose print for idle-kicker
- disable refhang.t test due to flakiness
- fix ordering issue in conn dispatch (prevents potential hangups)

New Features
- LRU crawler scheduling improvements


- Fix refcount leak in LRU bump buf


- init.d script status check routine
- Print with more-restricted format string to fix compiler warning
  with gcc 7's -Wformat-truncation.
- Display HOT/WARM tail age in stats items
- Active items in HOT' flow to WARM (algorithm fix)
- Moves to WARM requires two hits overall (algorithm fix)
- LRU maintainer performance: per-class sleep scheduling
- Allow limiting the internal LRU crawler run length
- Stop using atomics for item refcount management (performance)
- Make the conn suffix list the same as item list (performance)
- Do LRU-bumps while already holding item lock (performance)
- Reduce add_iov() work for TCP connections (performance)

New Features
- "lru" command for setting LRU parameters at runtime
- Allow switching LRU algo's at runtime

Revision / (download) - annotate - [select for diffs], Fri Feb 17 19:11:36 2017 UTC (6 years, 7 months ago) by bsiegert
Branch: pkgsrc-2016Q4
Changes since 1.52: +2 -3 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

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

Revision 1.53 / (download) - annotate - [select for diffs], Thu Feb 16 11:10:53 2017 UTC (6 years, 7 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1
Changes since 1.52: +2 -3 lines
Diff to previous 1.52 (colored)

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

Revision 1.52 / (download) - annotate - [select for diffs], Sat Jul 9 06:38:10 2016 UTC (7 years, 2 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2016Q4-base, pkgsrc-2016Q3-base, pkgsrc-2016Q3
Branch point for: pkgsrc-2016Q4
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

Bump PKGREVISION for perl-5.24.0 for everything mentioning perl.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Mar 5 11:28:24 2016 UTC (7 years, 6 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored)

Bump PKGREVISION for security/openssl ABI bump.

Revision 1.50 / (download) - annotate - [select for diffs], Tue Dec 8 17:41:56 2015 UTC (7 years, 9 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2015Q4-base, pkgsrc-2015Q4
Changes since 1.49: +2 -3 lines
Diff to previous 1.49 (colored)

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

Revision 1.49 / (download) - annotate - [select for diffs], Fri Jun 12 10:48:51 2015 UTC (8 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2
Changes since 1.48: +2 -1 lines
Diff to previous 1.48 (colored)

Recursive PKGREVISION bump for all packages mentioning 'perl',
having a PKGNAME of p5-*, or depending such a package,
for perl-5.22.0.

Revision 1.48 / (download) - annotate - [select for diffs], Thu May 21 22:21:08 2015 UTC (8 years, 4 months ago) by rodent
Branch: MAIN
Changes since 1.47: +2 -1 lines
Diff to previous 1.47 (colored)

Fix this the right way, thanks to joerg@. Noticed this is linking against
pthread too, so let's included that here as well.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Jan 4 23:41:04 2015 UTC (8 years, 8 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2015Q1-base, pkgsrc-2015Q1
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

Update to 1.4.22:

Bugfix maintenance release. Fixes to hash table expansion now
completely hang all threads very briefly while the hash table
pointers are swapped. Once swapped, it unlocks and uses locks as

In previous versions, the hash table was switched to a global lock
instead of a map of bucket-locks during expansion. This should be
faster overall with a small latency penalty. It's possible to
presize the hash table with -o hashpower

Revision 1.46 / (download) - annotate - [select for diffs], Thu Oct 23 11:24:31 2014 UTC (8 years, 11 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4
Changes since 1.45: +2 -3 lines
Diff to previous 1.45 (colored)

Update to 1.4.21:


    makefile cleanups
    Avoid OOM errors when locked items stuck in tail

If clients occasionally fetch many items, more than can fit the
TCP buffers, then hang for a very long period of time, that slab
class could OOM. In older versions this could cause a crash. Since
1.4.20 this will cause OOM errors.

Now, if a locked item lands in the LRU tail, it will be bumped back
to the head and an lrutail_reflocked counter incremented. If you're
concerned about having stuck clients, watch that counter.

Big thanks to Jay Grizzard et all at Box for helping track this

Revision 1.45 / (download) - annotate - [select for diffs], Tue Jul 15 17:30:26 2014 UTC (9 years, 2 months ago) by fhajny
Branch: MAIN
CVS Tags: pkgsrc-2014Q3-base, pkgsrc-2014Q3
Changes since 1.44: +7 -6 lines
Diff to previous 1.44 (colored)

Fix my previous commit, use user/group vars properly.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Jul 15 16:52:34 2014 UTC (9 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored)

Set PKG_HOME, which is used but not set.
XXX: please check if this is what was intended here.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jul 15 14:28:26 2014 UTC (9 years, 2 months ago) by fhajny
Branch: MAIN
Changes since 1.42: +8 -5 lines
Diff to previous 1.42 (colored)

Fix invalid PKG_USERS usage. Clean up unneeded bits. Bump PKGREVISION.

Revision 1.42 / (download) - annotate - [select for diffs], Thu May 29 23:35:37 2014 UTC (9 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2014Q2-base, pkgsrc-2014Q2
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored)

Bump for perl-5.20.0.
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.

Revision 1.41 / (download) - annotate - [select for diffs], Sun May 18 08:15:17 2014 UTC (9 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Update to 1.4.20:


Just one tiny change to fix a regression causing threads to lock
up and spin max CPU.

1.4.18 and 1.4.19 were affected. 1.4.17 and earlier were not
affected. If you are on .18 or .19 an upgrade to 1.4.20 is strongly

Thanks to for reporting the bug initially and putting
up with me being blind for a few weeks.


Fix a race condition causing new connections to appear closed,
causing an inifinte loop.

Revision 1.40 / (download) - annotate - [select for diffs], Sun May 4 17:04:48 2014 UTC (9 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.39: +2 -3 lines
Diff to previous 1.39 (colored)

Update to 1.4.19:


    Fix endianness detection during configure.
        Fixes a performance regression with binary protocol (up to 20%)
    Fix rare segfault in incr/decr.
    disable tail_repair_time by default.
        Likely not needed anymore, and can rarely cause bugs.
    use the right hashpower for the item_locks table. Small perf improvement.
    Fix crash for LRU crawler while using lock elision (haswell+ processors)

Revision 1.39 / (download) - annotate - [select for diffs], Wed Apr 30 05:39:19 2014 UTC (9 years, 4 months ago) by rodent
Branch: MAIN
Changes since 1.38: +8 -3 lines
Diff to previous 1.38 (colored)

Make rc.d init script work more like www/spawn-fcgi to facilitate the
execution of multiple memcached instances. Create home directory in
VARBASE/chroot/memcached for these PID files. Add MESSAGE to explain usage
to user. Usage is simple - set the following in rc.conf:

memcached_jobs="job0 ... jobN"
memcached_job0_args="-p 11211 -m 64 -c 1024"
memcached_jobN_args="-p 1121N -m 64 -c 1024"


Revision 1.38 / (download) - annotate - [select for diffs], Fri Apr 25 09:27:37 2014 UTC (9 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.37: +2 -3 lines
Diff to previous 1.37 (colored)

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

Revision 1.37 / (download) - annotate - [select for diffs], Tue Mar 11 14:34:37 2014 UTC (9 years, 6 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2014Q1-base, pkgsrc-2014Q1
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored)

Import initial SMF support for individual packages.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Feb 12 23:17:49 2014 UTC (9 years, 7 months ago) by tron
Branch: MAIN
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored)

Recursive PKGREVISION bump for OpenSSL API version bump.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jan 2 18:34:51 2014 UTC (9 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.34: +3 -4 lines
Diff to previous 1.34 (colored)

Update to 1.4.17:


Another bugfix release along with some minor new features. Most
notable is a potential fix for a crash bug that has plagued the
last few versions. If you see crashes with memcached, please try
this version and let us know if you still see crashes.

The other notable bug is a SASL authentication bypass glitch. If
a client makes an invalid request with SASL credentials, it will
initially fail. However if you issue a second request with bad SASL
credentials, it will authenticate. This has now been fixed.

A quick bugfix release to get the tree moving again after a long
absence. I don't want to make too many changes at once, so here
are a number of platform and crash fixes, as well as some introspection.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Jul 12 10:44:55 2013 UTC (10 years, 2 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Bump PKGREVISION of all packages which create users, to pick up change of
sysutils/user_* packages.

Revision 1.33 / (download) - annotate - [select for diffs], Fri May 31 12:40:01 2013 UTC (10 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2013Q2-base, pkgsrc-2013Q2
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Bump all packages for perl-5.18, that
a) refer 'perl' in their Makefile, or
b) have a directory name of p5-*, or
c) have any dependency on any p5-* package

Like last time, where this caused no complaints.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Feb 6 23:22:08 2013 UTC (10 years, 7 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2013Q1-base, pkgsrc-2013Q1
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)

PKGREVISION bumps for the security/openssl 1.0.1d update.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Oct 31 11:17:28 2012 UTC (10 years, 10 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2012Q4-base, pkgsrc-2012Q4
Changes since 1.30: +1 -3 lines
Diff to previous 1.30 (colored)

Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Oct 4 10:46:48 2012 UTC (10 years, 11 months ago) by asau
Branch: MAIN
Changes since 1.29: +2 -3 lines
Diff to previous 1.29 (colored)

Update to memcached 1.4.15

Changes in memcached 1.4.15


This is a somewhat experimental release which pushes thread
performance even more than before. Since this is a more
experimental release than usual, and contains no other major
fixes or features, we urge some caution for important
deployments. We feel as though it is high quality software, but
please take caution and do slow rollouts or testing. Thanks!


  * Add some mild thread documentation
  * was missing from dist tarball
  *  Issue 286 : --disable-coverage drops "-pthread" option
  * Reduce odds of getting OOM errors in some odd cases

New Features

Thread scalability is much improved for reads, and somewhat
improved for writes. In a pure read-only situation on a dual
socket six core NUMA machine I've tested key fetch rates around
13.6 million keys per second.

More tuning is necessary and you'd get significant lag at that
rate, but that shows the theoretical limit of the locks.

Changes in memcached 1.4.14



  * fix compile issue with new GCC's
  * Added support for automake-1.12 in
  * Use Markdown for README.
  * Fixed issue with invalid binary protocol touch command
    expiration time (
  * Define touch command probe for DTrace support
  * Error and exit if we don't have hugetlb support (changes -L behavior)
  * update reassign/automove documentation
  * Remove USE_SYSTEM_MALLOC define
  * slab rebalancing from random class
  * split slab rebalance and automove threads
  * pre-split slab pages into slab freelists
  * Avoid race condition in test during pid creation by blind retrying

New Features

This release mainly features a number of small bugfixes, but
also a change to slab rebalance behavior.

Previously, if you moved a slab page from one slab to another,
you had to wait until that new page was fully used before moving
another one. That wait has been removed, and you can move pages
as fast as the system can ... move them.

A few new features as well:

slabs reassign

slabs reassign -1 15 will pick a page from any slab class and move it to class 15.

slabs automove

slabs automove 2 now enables an ultra aggressive page
reassignment algorithm. On every eviction, it will try to move a
slab page into that class. You should never run this in
production unless you have a very, very good idea of what's
going to happen. For most people who have spurious evictions
everywhere, you'll end up mass evicting random data and hurting
your hit rate. It can be useful to momentarily enable for
emergency situations, or if you have a data access pattern where
evictions should never happen.

This was work we were planning on doing already, but twitter's
rewrite has people presently interested in trying it out. You've
been warned.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Oct 3 21:54:32 2012 UTC (10 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Bump all packages that use perl, or depend on a p5-* package, or
are called p5-*.

I hope that's all of them.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Oct 3 10:46:47 2012 UTC (10 years, 11 months ago) by asau
Branch: MAIN
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored)

Support running tests.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Mar 9 13:41:30 2012 UTC (11 years, 6 months ago) by fhajny
Branch: MAIN
CVS Tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1
Changes since 1.26: +3 -1 lines
Diff to previous 1.26 (colored)

Add DTrace support option.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Feb 25 20:52:53 2012 UTC (11 years, 6 months ago) by mspo
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

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

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.

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.

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

Fix a small number of bugs, mostly in building on different platforms.

Really tiny release with some important build fixes which were accidentally omitted from 1.4.12.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Oct 3 11:53:11 2011 UTC (11 years, 11 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2011Q4-base, pkgsrc-2011Q4
Changes since 1.24: +6 -9 lines
Diff to previous 1.24 (colored)

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

Revision 1.24 / (download) - annotate - [select for diffs], Fri May 27 11:58:52 2011 UTC (12 years, 4 months ago) by fhajny
Branch: MAIN
CVS Tags: pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2
Changes since 1.23: +5 -3 lines
Diff to previous 1.23 (colored)

Updated devel/memcached to 1.4.5


* Properly detect CPU alignment on ARM.
* Remove 1MB assertion.
* More automake versions supported.
* Compiler warning fixes for OpenBSD.
* Potential buffer overflow in vperror.
* Report errors opening pidfiles using vperror.

New Features:

* reclaimed: This stat reports the number of times an entry was stored
  using memory from an expired entry.
* sasl_pwdb: Allows memcached to use it's own plantext password file.
  (Not configured by pkgsrc yet.)

Revision 1.23 / (download) - annotate - [select for diffs], Fri Feb 11 21:22:02 2011 UTC (12 years, 7 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2011Q1-base, pkgsrc-2011Q1
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

revbump(1) for devel/libevent update.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Feb 27 20:40:52 2010 UTC (13 years, 6 months ago) by morr
Branch: MAIN
CVS Tags: pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1
Changes since 1.21: +17 -12 lines
Diff to previous 1.21 (colored)

Updated to release 1.4.4.
Release notes:

Reviewed by <joerg>

Revision 1.21 / (download) - annotate - [select for diffs], Sun Aug 16 15:35:43 2009 UTC (14 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Bump PKGREVISION for libevent ABI bump.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Apr 15 09:07:15 2009 UTC (14 years, 5 months ago) by mjl
Branch: MAIN
CVS Tags: pkgsrc-2009Q2-base, pkgsrc-2009Q2
Changes since 1.19: +7 -3 lines
Diff to previous 1.19 (colored)

Update memcached to 1.2.8

Critical bug affecting multithreaded builds
Many minor bugfixes, new statistics, minor new features.
Major crash fixes, DTrace support, minor updates.
Minor bugfixes, build support for opensolaris, ipv6 support,
"noreply" mode for many commands, largepage support for solaris.
Made out of memory errors more clear and added eviction/OOM tracking
per slab class.
Many bug and platform fixes since 1.2.2. New threading support for
stat queries. New commands 'append', 'prepend', 'gets', and 'cas'.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Feb 27 22:53:46 2009 UTC (14 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2009Q1-base, pkgsrc-2009Q1
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Bump PKGREVISION for libevent ABI bump.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Oct 16 21:52:16 2008 UTC (14 years, 11 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

PKGREVISION bump for libevent shlib name change.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Sep 6 21:39:52 2008 UTC (15 years ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2008Q3-base, pkgsrc-2008Q3, cube-native-xorg-base, cube-native-xorg
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Bump PKGREVISION for libevent users due to 1.4.3->1.4.5 shlib name change.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Apr 22 18:06:09 2008 UTC (15 years, 5 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2008Q2-base, pkgsrc-2008Q2, cwrapper
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

revbumps due to libevent update.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Apr 7 17:31:52 2008 UTC (15 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)


Revision 1.14 / (download) - annotate - [select for diffs], Mon Jan 14 16:00:59 2008 UTC (15 years, 8 months ago) by ghen
Branch: MAIN
CVS Tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

memcached requires at least libevent-1.0.  This fixes the build on NetBSD 3.x
which ships libevent 0.6.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Aug 30 19:33:55 2007 UTC (16 years ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3
Changes since 1.12: +6 -4 lines
Diff to previous 1.12 (colored)

Add DESTDIR support.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Aug 20 17:02:40 2007 UTC (16 years, 1 month ago) by abs
Branch: MAIN
Changes since 1.11: +2 -3 lines
Diff to previous 1.11 (colored)

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

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


	* Convert some sprintf calls to snprintf to protect against
	  buffer overflows.

	* Explicitly compare against NULL or zero in many places.

	* 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".

	* Steven Grimm <>: Fix an off-by-one error in the
	  multithreaded version's message passing code.

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

Revision 1.11 / (download) - annotate - [select for diffs], Thu Aug 16 09:27:04 2007 UTC (16 years, 1 month ago) by tnn
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Revbump sweep of all libevent consumers due to update to libevent-1.3d.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Apr 25 16:39:40 2007 UTC (16 years, 5 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2007Q2-base, pkgsrc-2007Q2
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Bump PKGREVISIONs to chase update of devel/libevent.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Feb 27 11:29:18 2007 UTC (16 years, 6 months ago) by grant
Branch: MAIN
CVS Tags: pkgsrc-2007Q1-base, pkgsrc-2007Q1
Changes since 1.8: +2 -3 lines
Diff to previous 1.8 (colored)

update memcached to 1.2.1.

changes since 1.1.12:

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

	* Iain Wade <>: Fix for UDP responses on
	  non-"get" commands.

	* Steven Grimm <>: New faster hash function.


	* don't listen on UDP by default; more clear message when UDP port
	  in use

	* release 1.2.0 (along with 1.1.13, which is the more tested branch)

	* Nathan Neulinger <>: fix breakage in expiration code
	  causing expiration times to not be processed correctly.

	* Nathan Neulinger <>: fix incompatabilities with
	  unix domain socket support and the UDP code and clean up stale

	* Nathan Neulinger <>: unix domain socket support

	* 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

	* 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).

	* patch from Peter van Dijk <> to make
	  stderr unbuffered, for running under daemontools

Revision 1.8 / (download) - annotate - [select for diffs], Sun Feb 11 05:22:24 2007 UTC (16 years, 7 months ago) by tv
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

PKGREVISION bump due to proper ABI_DEPENDS versioning in devel/libevent.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 7 09:13:51 2007 UTC (16 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Mechanically replaced man/* with ${PKGMANDIR}/* in the definition of
INSTALLATION_DIRS, as well as all occurrences of ${PREFIX}/man with

Fixes PR 35265, although I did not use the patch provided therein.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Mar 4 21:29:18 2006 UTC (17 years, 6 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2006Q4-base, pkgsrc-2006Q4, pkgsrc-2006Q3-base, pkgsrc-2006Q3, pkgsrc-2006Q2-base, pkgsrc-2006Q2, pkgsrc-2006Q1-base, pkgsrc-2006Q1
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Point MAINTAINER to in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't

Revision 1.5 / (download) - annotate - [select for diffs], Thu Feb 23 03:50:23 2006 UTC (17 years, 7 months ago) by grant
Branch: MAIN
Changes since 1.4: +2 -3 lines
Diff to previous 1.4 (colored)

update to 1.1.12.

changes since 1.1.11:

        * patch from Don MacAskill <> 'flush_all' doesn't
        seem to work properly.  Basically, if you try to add a key which
        is present, but expired, the store fails but the old key is no
        longer expired.

        * Date: Thu, 18 Nov 2004 15:25:59 -0600
          From: David Phillips <>
        Here is a patch to and to put the man page in
        the correct location.  Trying to install the man page from a
        subdirectory results in the subdirectory being used in the install
        path (it tries to install to doc/memcached.1).  This is the correct
        thing to  do:

        - create a in the doc directory that installs the man page
          with man_MANS
        - modify in the base directory to reference the doc
          directory using SUBDIRS
        - modify the AC_CONFIG_FILES macro in to output the
          Makefile in doc

        * pidfile saving support from Lisa Seelye <>, sent
          Jan 13, 2005

        * don't delete libevent events that haven't been added (the deltimer)
          patch from Ted Schundler <>

        * document -M and -r in manpage (Doug Porter <>)

        * fix buffer overflow in items.c with 250 byte keys along with
          other info on the same line going into a 256 byte char[].
          thanks to Andrei Nigmatulin <>

        * immediate deletes weren't being unlinked a few seconds,
          preventing "add" commands to the same key in that time period.
          thanks to Michael Alan Dorman <> for the
          bug report and demo script.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Sep 16 14:46:42 2005 UTC (18 years ago) by tv
Branch: MAIN
CVS Tags: pkgsrc-2005Q4-base, pkgsrc-2005Q4, pkgsrc-2005Q3-base, pkgsrc-2005Q3
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

"Oops."  BUILDLINK_DEPMETHOD.libevent was defaulting to "build", which is
no longer correct since update to libevent 1.x; it now uses libtool and
generates a shlib.

Remove the offending bl3 line, and bump all dependents' PKGREVISIONs, since
the binary pkg changes for any OS that doesn't have a sufficient builtin
libevent version (or the package has requested a non-builtin version).

Revision 1.3 / (download) - annotate - [select for diffs], Mon Apr 11 21:45:28 2005 UTC (18 years, 5 months ago) by tv
Branch: MAIN
CVS Tags: pkgsrc-2005Q2-base, pkgsrc-2005Q2
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored)

Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Feb 9 05:53:32 2005 UTC (18 years, 7 months ago) by xtraeme
Branch: MAIN
CVS Tags: pkgsrc-2005Q1-base, pkgsrc-2005Q1
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)


Revision / (download) - annotate - [select for diffs] (vendor branch), Wed Feb 9 05:37:30 2005 UTC (18 years, 7 months ago) by xtraeme
Branch: TNF
CVS Tags: pkgsrc-base
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

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.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Feb 9 05:37:30 2005 UTC (18 years, 7 months ago) by xtraeme
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>