@ -41,6 +41,7 @@ abstract class Connection implements \Yggverse\Yoda\Interface\Model\Connection
'mime',
32
);
$this->_pool->init(
'data',
// 1 Mb default
@ -227,8 +228,13 @@ abstract class Connection implements \Yggverse\Yoda\Interface\Model\Connection
return null;
}
public function reset(): void
{
$this->_pool->reset();
public function close(): void
$this->_pool->clean();
$this->_pool->close();
@ -74,5 +74,7 @@ interface Connection
public function getLength(): ?int;
public function reset(): void;
public function close(): void;
@ -46,5 +46,7 @@ interface Pool
?string $value = null
): void;
public function clean(): void;
@ -127,7 +127,18 @@ class Pool implements \Yggverse\Yoda\Interface\Model\Pool
public function clean(): void
foreach ($this->_data as $key => $shmop)
$this->set(
$key,
null