X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fio.cc;h=e83522b984f99124429714469ea902db91c76336;hb=560784bd3bc77b292761ef878dfb5f6205054946;hp=309df4c1dd3c3595121261b21250f5155ce28a06;hpb=a713b6d9ee850ae5805c05e8336256cea1f71138;p=m6w6%2Flibmemcached diff --git a/libmemcached/io.cc b/libmemcached/io.cc index 309df4c1..e83522b9 100644 --- a/libmemcached/io.cc +++ b/libmemcached/io.cc @@ -203,6 +203,7 @@ static memcached_return_t io_wait(memcached_server_write_instance_st ptr, if (ptr->root->poll_timeout == 0) // Mimic 0 causes timeout behavior (not all platforms do this) { + ptr->io_wait_count.timeouts++; return memcached_set_error(*ptr, MEMCACHED_TIMEOUT, MEMCACHED_AT); } @@ -340,8 +341,6 @@ static bool io_flush(memcached_server_write_instance_st ptr, } else if (rc == MEMCACHED_TIMEOUT) { - ptr->io_wait_count.timeouts++; - error= memcached_set_error(*ptr, MEMCACHED_TIMEOUT, MEMCACHED_AT); return false; }