设置可服用的连接
null Module_Storage_Driver_Swift::set_connection( string $hash , $fp $fp )
参数列表
参数 类型 描述 默认值 $hash
string
连接hash $fp
$fp
Resource fsockopen returns a file pointer which may be used
protected static function set_connection($hash, $fp)
{
if (isset(Storage_Driver_Swift::$connections[$hash]))
{
unset(Storage_Driver_Swift::$connections[$hash]);
}
Storage_Driver_Swift::$connections[$hash] = $fp;
Storage_Driver_Swift::$last_used[$hash] = time();
Storage_Driver_Swift::$requests_num[$hash] = 0;
}