--- MemCachedClient.inc.php 2003-07-27 21:25:37.000000000 +0100 +++ MemCachedClient.inc.php2 2003-07-27 21:29:03.000000000 +0100 @@ -267,10 +267,11 @@ $host = $this->buckets[$hv % $this->bucketcount]; $sock = $this->sock_to_host($host); - if($sock) + if(is_resource($sock)) return $sock; $hv += $this->_hashfunc($tries); + $tries++; } return null;