Fix TLS handshake failure during download#476
Open
kianmeng wants to merge 1 commit intondmitchell:masterfrom
Open
Fix TLS handshake failure during download#476kianmeng wants to merge 1 commit intondmitchell:masterfrom
kianmeng wants to merge 1 commit intondmitchell:masterfrom
Conversation
Use 'ciphersuite_strong' in the TLS manager to resolve handshake failures (DecodeError) due to rejection of weak cipher from remote server when building database through `hoogle generate`.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use 'ciphersuite_strong' in the TLS manager to resolve handshake failures (DecodeError) due to rejection of weak cipher from remote server when building database through
hoogle generate.Before:
$ hoogle generate Starting generate Downloading https://www.stackage.org/lts/cabal.config... hoogle: Uncaught exception http-client-0.7.19-e53e031a3080635351a782ae473941335ff5cb434b654af0da963246f7167366:Network.HTTP.Client.Types.HttpException: HttpExceptionRequest Request { host = "www.stackage.org" port = 443 secure = True requestHeaders = [] path = "/lts/cabal.config" queryString = "" method = "GET" proxy = Nothing rawBody = False redirectCount = 10 responseTimeout = ResponseTimeoutDefault requestVersion = HTTP/1.1 proxySecureMode = ProxySecureWithConnect } (InternalException (HandshakeFailed (Error_Protocol "expecting server hello, got alert : [(AlertLevel_Fatal,DecodeError)]" HandshakeFailure))) While handling HttpExceptionRequest Request { | host = "www.stackage.org" | port = 443 | secure = True | requestHeaders = [] | path = "/lts/cabal.config" | queryString = "" | method = "GET" | proxy = Nothing | rawBody = False | redirectCount = 10 | responseTimeout = ResponseTimeoutDefault | requestVersion = HTTP/1.1 | proxySecureMode = ProxySecureWithConnect | } | (InternalException (HandshakeFailed (Error_Protocol "expecting server hello, got alert : [(AlertLevel_Fatal,DecodeError)]" HandshakeFailure))) HasCallStack backtrace: throwIO, called at ./Control/Monad/Trans/Resource.hs:195:13 in resourcet-1.3.0-7299c6173b690f5eb16d3064231923041dd3dc557a27f9dbaf609a7a01dc2448:Control.Monad.Trans.ResourceAfter: