Added server_timeout_counter and behavior MEMCACHED_BEHAVIOR_SERVER_TIMEOUT_LIMIT.
authorNicolas Van Eenaeme <nicolas@poison.be>
Wed, 20 Nov 2013 15:37:48 +0000 (16:37 +0100)
committerBrian Aker <brian@tangent.org>
Wed, 20 Nov 2013 15:37:48 +0000 (16:37 +0100)
commitbdb615a66ac1df020917d000adf2f73e49fd3a25
treeabb03dbc327dea7daa83549c90bc087210c19d1f
parent5356e466e864b310a0195b72ce232197827bbe4e
Added server_timeout_counter and behavior MEMCACHED_BEHAVIOR_SERVER_TIMEOUT_LIMIT.

This feature works as follows:
When a timeout occurs, retry MEMCACHED_BEHAVIOR_SERVER_TIMEOUT_LIMIT times before
putting the server in MEMCACHED_SERVER_STATE_IN_TIMEOUT state.

It makes sense to not fail from the 1st time but retry on the next calls before marking
the server as timeout.
13 files changed:
libmemcached-1.0/defaults.h
libmemcached-1.0/struct/memcached.h
libmemcached-1.0/struct/server.h
libmemcached-1.0/types/behavior.h
libmemcached/behavior.cc
libmemcached/connect.cc
libmemcached/instance.cc
libmemcached/instance.hpp
libmemcached/memcached.cc
libmemcached/quit.cc
libmemcached/server.cc
libmemcached/server.hpp
tests/libmemcached-1.0/mem_functions.cc