Skip to content

Ignore unclean ssl shutdown errors #432

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

Merged

Conversation

fabianfett
Copy link
Member

Motivation

We support the option to ignore NIOSSLError.uncleanShutdown. This must also be supported by our new ConnectionPool implementation.

Changes

  • To not end up with an infinite amount of properties on HTTPExecutableRequest, a new RequestOptions struct was started, that can be used to set request specific options.
  • Added support for ignoreUncleanSSLShutdown in the HTTPRequestStateMachine and the HTTP1ConnectionStateMachine. In http/2 ignoreUncleanSSLShutdown is always off.

@fabianfett fabianfett added the 🔨 semver/patch No public API change. label Sep 20, 2021
@fabianfett fabianfett added this to the HTTP/2 support milestone Sep 20, 2021
@fabianfett
Copy link
Member Author

Known flaky tests says hello 👋 HTTPClientTests.testRaceNewRequestsVsShutdown:
https://ci.swiftserver.group/job/async-http-client-swift54-prb/378/console

@fabianfett
Copy link
Member Author

@swift-server-bot test this please

@fabianfett fabianfett merged commit 64fbfda into swift-server:main Sep 21, 2021
@fabianfett fabianfett deleted the ff-ignore-unclean-ssl-shutdown branch September 21, 2021 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants