protected function getConnection()
{
if ($this->connection) {
$this->connection->close();
unset($this->connection);
}
$client = stream_socket_client($this->getControllerSocket());
$this->connection = new Connection($client, $this->loop);
return $this->connection;
}