/** * Process Shutdown session */ public function shutdown() { // we want to immediately remove // all references $this->onClose(); $this->transport->close(); }
/** * Starts the close sequence */ public function close() { $this->client->setAttemptRetry(false); $this->transport->close(); }
/** * Handle close transport * * @param \Thruway\Transport\TransportInterface $transport */ public function onClose(TransportInterface $transport) { Logger::debug($this, "onClose from " . json_encode($transport->getTransportDetails())); $this->sessions->detach($transport); }
/** * Handle close transport * * @param \Thruway\Transport\TransportInterface $transport */ public function onClose(TransportInterface $transport) { Logger::debug($this, "onClose from " . json_encode($transport->getTransportDetails())); /* @var $session \Thruway\Session */ $session = $this->sessions[$transport]; $session->onClose(); $this->sessions->detach($transport); }
public function onClose(TransportInterface $transport) { $this->manager->debug("onClose from " . json_encode($transport->getTransportDetails())); /** @var $session Session */ $session = $this->sessions[$transport]; $session->onClose(); $this->sessions->detach($transport); }