PhpAmqpLib/Connection/AbstractConnection.php
public function reconnect()
    {
        // Try to close the AMQP connection
        $this->safeClose();
        // Reconnect the socket/stream then AMQP
        $this->io->close();
        $this->setIsConnected(false); // getIO can initiate the connection setting via LazyConnection, set it here to be sure
        $this->connect();
    }
public function reconnect()
    {
        // Try to close the AMQP connection
        $this->safeClose();
        // Reconnect the socket/stream then AMQP
        $this->io->close();
        $this->setIsConnected(false); // getIO can initiate the connection setting via LazyConnection, set it here to be sure
        $this->connect();
    }
public function reconnect ( ) { // Try to close the AMQP connection $ this -> safeClose ( ) ; // Reconnect the socket/stream then AMQP $ this -> io -> close ( ) ; $ this -> setIsConnected ( false ) ; // getIO can initiate the connection setting via LazyConnection, set it here to be sure $ this -> connect ( ) ; }
Reconnects using the original connection settings.
This will not recreate any channels that were established previously
Reconnects using the original connection settings . This will not recreate any channels that were established previously