4 This closes all connections (forces flush of input as well).
6 Maybe add a host specific, or key specific version?
8 The reason we send "quit" is that in case we have buffered IO, this
9 will force data to be completed.
11 void memcached_quit(memcached_st
*ptr
)
17 for (x
= 0; x
< ptr
->number_of_hosts
; x
++)
19 if (ptr
->hosts
[x
].fd
!= -1)
21 char buffer
[MEMCACHED_DEFAULT_COMMAND_SIZE
];
23 if (ptr
->flags
& MEM_NO_BLOCK
)
24 memcached_io_write(ptr
, x
, "quit\r\n", 6, 1);
25 close(ptr
->hosts
[x
].fd
);