Skip to content

NoResult error on errors before TaskHandler is added #313

New issue

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

Closed
artemredkin opened this issue Oct 20, 2020 · 1 comment · Fixed by #316
Closed

NoResult error on errors before TaskHandler is added #313

artemredkin opened this issue Oct 20, 2020 · 1 comment · Fixed by #316
Labels
kind/bug Feature doesn't work as expected.
Milestone

Comments

@artemredkin
Copy link
Collaborator

If something other that handshakeFailed happens during SSL handshake (for example uncleanShutdown), we will get NoResult error and real error will not be propagated

@artemredkin artemredkin added this to the 1.2.2 milestone Oct 20, 2020
@artemredkin artemredkin added the kind/bug Feature doesn't work as expected. label Oct 20, 2020
@artemredkin
Copy link
Collaborator Author

Another possible source of this issue is high load, SSL handshake takes too long and receive remote connection closed and fail handshakePromise on channel close

artemredkin added a commit to artemredkin/async-http-client that referenced this issue Nov 11, 2020
Motivation:
Right now we only handle one type of SSL error: `.handshakeFailed`,
but in reality a multitude of errors can happen, for example, remote
party might just close connection that will in turn raise
`.uncleanShutdown` error, that will be dropped on the floor and
users will only get non-descriptive `NoResult` error.

Modifications:
Handle all types of SSL errors during handshake instead of just one.
Adds a test.

Result:
Closes swift-server#313
artemredkin added a commit to artemredkin/async-http-client that referenced this issue Nov 11, 2020
Motivation:
Right now we only handle one type of SSL error: `.handshakeFailed`,
but in reality a multitude of errors can happen, for example, remote
party might just close connection that will in turn raise
`.uncleanShutdown` error, that will be dropped on the floor and
users will only get non-descriptive `NoResult` error.

Modifications:
Handle all types of SSL errors during handshake instead of just one.
Adds a test.

Result:
Closes swift-server#313
artemredkin added a commit to artemredkin/async-http-client that referenced this issue Nov 11, 2020
Motivation:
Right now we only handle one type of SSL error: `.handshakeFailed`,
but in reality a multitude of errors can happen, for example, remote
party might just close connection that will in turn raise
`.uncleanShutdown` error, that will be dropped on the floor and
users will only get non-descriptive `NoResult` error.

Modifications:
Handle all types of SSL errors during handshake instead of just one.
Adds a test.

Result:
Closes swift-server#313
artemredkin added a commit to artemredkin/async-http-client that referenced this issue Nov 11, 2020
Motivation:
Right now we only handle one type of SSL error: `.handshakeFailed`,
but in reality a multitude of errors can happen, for example, remote
party might just close connection that will in turn raise
`.uncleanShutdown` error, that will be dropped on the floor and
users will only get non-descriptive `NoResult` error.

Modifications:
Handle all types of SSL errors during handshake instead of just one.
Adds a test.

Result:
Closes swift-server#313
artemredkin added a commit that referenced this issue Nov 11, 2020
Motivation:
Right now we only handle one type of SSL error: `.handshakeFailed`,
but in reality a multitude of errors can happen, for example, remote
party might just close connection that will in turn raise
`.uncleanShutdown` error, that will be dropped on the floor and
users will only get non-descriptive `NoResult` error.

Modifications:
Handle all types of SSL errors during handshake instead of just one.
Adds a test.

Result:
Closes #313

Co-authored-by: Cory Benfield <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Feature doesn't work as expected.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant