projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Adding support for libmemcached_ping().
[awesomized/libmemcached]
/
libmemcached
/
io.c
diff --git
a/libmemcached/io.c
b/libmemcached/io.c
index 1c8783b29ec71899ecf39733a882a5b6cf37bf57..d6129b850f909862c8d8a24529f7c11fd4f60cae 100644
(file)
--- a/
libmemcached/io.c
+++ b/
libmemcached/io.c
@@
-278,7
+278,7
@@
memcached_return_t memcached_io_read(memcached_server_write_instance_st ptr,
else if (data_read == -1)
{
ptr->cached_errno= errno;
else if (data_read == -1)
{
ptr->cached_errno= errno;
- memcached_return_t rc= MEMCACHED_
UNKNOWN_READ_FAILURE
;
+ memcached_return_t rc= MEMCACHED_
ERRNO
;
switch (errno)
{
case EAGAIN:
switch (errno)
{
case EAGAIN:
@@
-309,6
+309,7
@@
memcached_return_t memcached_io_read(memcached_server_write_instance_st ptr,
for blocking I/O we do not return 0 and for non-blocking case
it will return EGAIN if data is not immediatly available.
*/
for blocking I/O we do not return 0 and for non-blocking case
it will return EGAIN if data is not immediatly available.
*/
+ WATCHPOINT_STRING("We had a zero length read()");
memcached_quit_server(ptr, true);
*nread= -1;
return MEMCACHED_UNKNOWN_READ_FAILURE;
memcached_quit_server(ptr, true);
*nread= -1;
return MEMCACHED_UNKNOWN_READ_FAILURE;