projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Adding buffered IO to reads
[m6w6/libmemcached]
/
lib
/
memcached_verbosity.c
diff --git
a/lib/memcached_verbosity.c
b/lib/memcached_verbosity.c
index b68fbbd4f3c26c86073e3675776fff4b938d12ce..0be5fd4bb6501cc38fa22186fed57a9126619ab3 100644
(file)
--- a/
lib/memcached_verbosity.c
+++ b/
lib/memcached_verbosity.c
@@
-1,4
+1,4
@@
-#include
<memcached.h>
+#include
"common.h"
memcached_return memcached_verbosity(memcached_st *ptr, unsigned int verbosity)
{
memcached_return memcached_verbosity(memcached_st *ptr, unsigned int verbosity)
{
@@
-21,7
+21,7
@@
memcached_return memcached_verbosity(memcached_st *ptr, unsigned int verbosity)
{
memcached_return rc;
{
memcached_return rc;
- if ((
write(ptr->hosts[x].fd, buffer, send_length
) == -1))
+ if ((
send(ptr->hosts[x].fd, buffer, send_length, 0
) == -1))
{
continue;
return MEMCACHED_SOME_ERRORS;
{
continue;
return MEMCACHED_SOME_ERRORS;