fix wrong timeout check
authorMichael Wallner <mike@php.net>
Tue, 27 Oct 2020 07:47:09 +0000 (08:47 +0100)
committerMichael Wallner <mike@php.net>
Tue, 27 Oct 2020 07:47:09 +0000 (08:47 +0100)
src/libmemcached/connect.cc

index 3803b23e6fa47c2a4cd87fa335ba5dda2e249fe8..248cd7cd387955987b141e3caf291fcbb00cc5f7 100644 (file)
@@ -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 "