Sync with libmemcached 1.0.17.