From: Michael Wallner Date: Tue, 27 Oct 2020 07:47:09 +0000 (+0100) Subject: fix wrong timeout check X-Git-Tag: 1.1.0-beta1~160 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ad30cb9bc8b8a0a0a371eb3ba7f154891820584f;p=m6w6%2Flibmemcached fix wrong timeout check --- diff --git a/src/libmemcached/connect.cc b/src/libmemcached/connect.cc index 3803b23e..248cd7cd 100644 --- a/src/libmemcached/connect.cc +++ b/src/libmemcached/connect.cc @@ -49,7 +49,7 @@ static memcached_return_t connect_poll(memcached_instance_st *server, const int size_t loop_max = 5; - if (server->root->poll_timeout == 0) { + if (server->root->connect_timeout == 0) { return memcached_set_error( *server, MEMCACHED_TIMEOUT, MEMCACHED_AT, memcached_literal_param("The time to wait for a connection to be established was set to "