projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Better reporting on errors from mget.
[awesomized/libmemcached]
/
libmemcached
/
behavior.c
diff --git
a/libmemcached/behavior.c
b/libmemcached/behavior.c
index f1573b608653e86dc0629b4438736130c835fcde..b84e770a5b559cf2f35d6e6e7aa4fdca215b1b3e 100644
(file)
--- a/
libmemcached/behavior.c
+++ b/
libmemcached/behavior.c
@@
-12,8
+12,6
@@
#include "common.h"
#include <time.h>
#include <sys/types.h>
#include "common.h"
#include <time.h>
#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/tcp.h>
static bool set_flag(uint64_t data)
{
static bool set_flag(uint64_t data)
{
@@
-55,6
+53,7
@@
memcached_return_t memcached_behavior_set(memcached_st *ptr,
ptr->server_failure_limit= (uint32_t)data;
break;
case MEMCACHED_BEHAVIOR_BINARY_PROTOCOL:
ptr->server_failure_limit= (uint32_t)data;
break;
case MEMCACHED_BEHAVIOR_BINARY_PROTOCOL:
+ memcached_quit(ptr); // We need t shutdown all of the connections to make sure we do the correct protocol
if (data)
{
ptr->flags.verify_key= false;
if (data)
{
ptr->flags.verify_key= false;