Merge lp:~493pocbrcycmdw7yksonho9o2qzz-o18bz-d18ecat4t1b76tkfi3vttrkfngli/libmemcached/feature-server_timeout into lp:libmemcached/1.0
Status: | Needs review |
---|---|
Proposed branch: | lp:~493pocbrcycmdw7yksonho9o2qzz-o18bz-d18ecat4t1b76tkfi3vttrkfngli/libmemcached/feature-server_timeout |
Merge into: | lp:libmemcached/1.0 |
Diff against target: |
227 lines (+50/-18) 13 files modified
libmemcached-1.0/defaults.h (+1/-1) libmemcached-1.0/struct/memcached.h (+1/-0) libmemcached-1.0/struct/server.h (+2/-0) libmemcached-1.0/types/behavior.h (+1/-0) libmemcached/behavior.cc (+7/-0) libmemcached/connect.cc (+1/-0) libmemcached/instance.cc (+2/-0) libmemcached/instance.hpp (+3/-0) libmemcached/memcached.cc (+2/-0) libmemcached/quit.cc (+1/-0) libmemcached/server.cc (+2/-0) libmemcached/server.hpp (+26/-17) tests/libmemcached-1.0/mem_functions.cc (+1/-0) |
To merge this branch: | bzr merge lp:~493pocbrcycmdw7yksonho9o2qzz-o18bz-d18ecat4t1b76tkfi3vttrkfngli/libmemcached/feature-server_timeout |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brian Aker | Approve | ||
Maurus Cuelenaere (community) | Approve | ||
Tangent Trunk | Pending | ||
Review via email:
|
Description of the change
Added server_
This feature works as follows:
When a timeout occurs, retry MEMCACHED_
putting the server in MEMCACHED_
It makes sense to not fail from the 1st time but retry on the next calls before marking
the server as timeout. Since the default is 0 (don't retry first before marking as TIMEOUT) it will be backwards compatible.
Unmerged revisions
- 1173. By nicolas
-
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.
LGTM