From ad30cb9bc8b8a0a0a371eb3ba7f154891820584f Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 27 Oct 2020 08:47:09 +0100 Subject: [PATCH] fix wrong timeout check --- src/libmemcached/connect.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 " -- 2.30.2