X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fprotocol%2Fbinary_handler.c;h=81c09c99f88f01154857cf4e35e7323f105c873c;hb=6b46b12051fa265bbd9c2a17899a280c8bd82769;hp=2bafdeb1a445df0378bb4e366a955f1fca2bee3c;hpb=bb79693dc3100f28ea4fa477db895876d71fe0e9;p=awesomized%2Flibmemcached diff --git a/libmemcached/protocol/binary_handler.c b/libmemcached/protocol/binary_handler.c index 2bafdeb1..81c09c99 100644 --- a/libmemcached/protocol/binary_handler.c +++ b/libmemcached/protocol/binary_handler.c @@ -3,7 +3,6 @@ #include #include -#include #include #include #include @@ -59,11 +58,11 @@ raw_response_handler(const void *cookie, num_bytes); if (nw == -1) { - if (errno == EWOULDBLOCK) + if (get_socket_errno() == EWOULDBLOCK) { break; } - else if (errno != EINTR) + else if (get_socket_errno() != EINTR) { client->error= errno; return PROTOCOL_BINARY_RESPONSE_EIO;