Skip to content

Commit 48dcc61

Browse files
committed
1 parent 279113c commit 48dcc61

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

src/libmemcached/purge.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ bool memcached_purge(memcached_instance_st *ptr) {
108108
WATCHPOINT_ERROR(rc);
109109
is_successful = false;
110110
}
111-
if (rc == MEMCACHED_TIMEOUT) {
112-
break;
113-
}
114111

115112
if (ptr->root->callbacks) {
116113
memcached_callback_st cb = *ptr->root->callbacks;

src/libmemcached/response.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ static memcached_return_t _read_one_response(memcached_instance_st *instance, ch
761761
rc = textual_read_one_response(instance, buffer, buffer_length, result);
762762
}
763763

764-
if (memcached_fatal(rc) && rc != MEMCACHED_TIMEOUT) {
764+
if (memcached_fatal(rc)) {
765765
memcached_io_reset(instance);
766766
}
767767

test/tests/memcached/noblock.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ TEST_CASE("memcached_noblock") {
2323
break;
2424
case MEMCACHED_TIMEOUT:
2525
case MEMCACHED_WRITE_FAILURE:
26-
if(!timeout) {
27-
--i;
28-
}
2926
++hit;
3027
REQUIRE(true);
3128
break;

0 commit comments

Comments
 (0)