Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fatal TLS handshake exception when publishing
The Ktor HTTP client throws a fatal TLSException HandshakeFailure when connecting to the repository. Curiously this doesn't occur in our staging environment, but can easily be reproduced locally. The issue seems to find root in the CIO Ktor client's cipher support suite as indicated by issues with the same error such as [1]. Supposedly this issue was resolved, but others such as [2] indicate the issue is still present despite it being closed upstream. Without useful error information from the stack trace, the best option seems to be switching to another well-supported client engine such as Apache5. As a bonus, Apache5 also has HTTP/2 enabled by default. [1]: ktorio/ktor#439 [2]: oliver-charlesworth/craft-watch#198
- Loading branch information
1 parent
1b0649c
commit 52ce77f
Showing
2 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters