silence list, not sure if the port should always be set

This commit is contained in:
Gabriel Wicke 2004-06-15 22:43:11 +00:00
parent af0dafefa2
commit 50ada93524

View file

@ -667,7 +667,7 @@ class memcached
function _dead_sock ($sock)
{
$host = array_search($sock, $this->_cache_sock);
list ($ip, $port) = explode(":", $host);
@list ($ip, $port) = explode(":", $host);
$this->_host_dead[$ip] = time() + 30 + intval(rand(0, 10));
$this->_host_dead[$host] = $this->_host_dead[$ip];
unset($this->_cache_sock[$host]);