Skip to content

fix(transport): Return connection error on Channel::connect - #413

Merged
LucioFranco merged 1 commit into
masterfrom
lucio/fix-connect-err
Jul 27, 2020
Merged

fix(transport): Return connection error on Channel::connect#413
LucioFranco merged 1 commit into
masterfrom
lucio/fix-connect-err

Conversation

@LucioFranco

Copy link
Copy Markdown
Member

Before this fix, if the connect phase of the transport failed before
ever establishing a connection, we would never return the error until
the first call to send a request. This PR changes that behavior to only
forward the error to the call method if we have ever made a connection
before. If we have never established a connection before then
Reconnect will return an error on the call to poll_ready.

Fixes #403

Before this fix, if the connect phase of the transport failed before
ever establishing a connection, we would never return the error until
the first call to send a request. This PR changes that behavior to only
forward the error to the call method if we have ever made a connection
before. If we have never established a connection before then
`Reconnect` will return an error on the call to `poll_ready`.

Fixes #403
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0.3.0 Client::connect always returns Ok even if the sever URL does not exist.

1 participant