We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello! First, thanks for your work with Thruway. 🙏
I'm trying to use a Thruway\Connection which uses internally Thruway\Transport\PawlTransportProvider and Thruway\Peer\Client.
Thruway\Connection
Thruway\Transport\PawlTransportProvider
Thruway\Peer\Client
Everything works as expected when I pass a "valid" $options array :
$options
$connection = new Connection([ 'realm' => $realm, 'authid' => $token, 'url' => $url, 'authmethods' => ['jwt'], 'onChallenge' => function () { return 'challenge-message'; }, ]);
But what if for example $token contains an invalid token?
$token
wamp.error.authentication_failed
Client
onClose()
retryConnection()
PawlTransportProvider
startTransportProvider()
onOpen()
The Client onOpen() function looks like:
public function onOpen(TransportInterface $transport) { $this->retryTimer = 0; // ? $this->retryAttempts = 0; // ? $this->transport = $transport; $session = new ClientSession($transport, $this); $this->session = $session; $session->setLoop($this->getLoop()); $session->setState(ClientSession::STATE_DOWN); $this->startSession($session); }
My question is: Why re-set retryTimer and retryAttempts here? In my case it causes an infinite loop of retries.
retryTimer
retryAttempts
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello!
First, thanks for your work with Thruway. 🙏
I'm trying to use a
Thruway\Connection
which uses internallyThruway\Transport\PawlTransportProvider
andThruway\Peer\Client
.Everything works as expected when I pass a "valid"
$options
array :But what if for example
$token
contains an invalid token?wamp.error.authentication_failed
errorClient
onClose()
function https://github.com/thruway/client/blob/master/src/Peer/Client.php#L442Client
retryConnection()
function https://github.com/thruway/client/blob/master/src/Peer/Client.php#L465PawlTransportProvider
startTransportProvider()
function https://github.com/thruway/client/blob/master/src/Peer/Client.php#L490Client
onOpen()
function https://github.com/thruway/pawl-transport/blob/master/src/PawlTransportProvider.php#L54The
Client
onOpen()
function looks like:My question is: Why re-set
retryTimer
andretryAttempts
here?In my case it causes an infinite loop of retries.
The text was updated successfully, but these errors were encountered: