Skip to content

Commit

Permalink
Merge pull request #64 from well-typed/edsko/http2-5.1
Browse files Browse the repository at this point in the history
Use latest http2
  • Loading branch information
edsko authored Jan 24, 2024
2 parents 7db027b + 9fbacae commit 7645559
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 27 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
strategy:
matrix:
include:
- compiler: ghc-9.6.3
- compiler: ghc-9.6.4
compilerKind: ghc
compilerVersion: 9.6.3
compilerVersion: 9.6.4
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.4.8
Expand Down Expand Up @@ -160,11 +160,6 @@ jobs:
echo "package grapesy" >> cabal.project
echo " ghc-options: -Werror=missing-methods" >> cabal.project
cat >> cabal.project <<EOF
source-repository-package
type: git
location: http://github.com/edsko/http2
tag: 8bd2ac2df4d57697d4dc4a7535ee02784e842425
package grapesy
tests: True
flags: +build-demo +build-stress-test
Expand Down
5 changes: 0 additions & 5 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@ packages: .
package grapesy
tests: True
flags: +build-demo +build-stress-test

source-repository-package
type: git
location: http://github.com/edsko/http2
tag: 8bd2ac2df4d57697d4dc4a7535ee02784e842425
5 changes: 0 additions & 5 deletions cabal.project.ci
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,3 @@ package grapesy
tests: True
flags: +build-demo +build-stress-test
ghc-options: -Werror

source-repository-package
type: git
location: http://github.com/edsko/http2
tag: 8bd2ac2df4d57697d4dc4a7535ee02784e842425
6 changes: 3 additions & 3 deletions grapesy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ data-files: route_guide_db.json
tested-with: GHC==8.10.7
, GHC==9.2.8
, GHC==9.4.8
, GHC==9.6.3
, GHC==9.6.4

common lang
ghc-options:
Expand Down Expand Up @@ -153,8 +153,8 @@ library
, generics-sop >= 0.5 && < 0.6
, hashable >= 1.3 && < 1.5
, http-types >= 0.12 && < 0.13
, http2 >= 5.0 && < 5.1
, http2-tls >= 0.2.1 && < 0.3
, http2 >= 5.1 && < 5.2
, http2-tls >= 0.2.2 && < 0.3
, mtl >= 2.2 && < 2.4
, network >= 3.1 && < 3.2
, network-byte-order >= 0.1 && < 0.2
Expand Down
8 changes: 1 addition & 7 deletions src/Network/GRPC/Client/Connection.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import Control.Monad
import Control.Monad.Catch
import Control.Tracer
import Data.ByteString qualified as Strict (ByteString)
import Data.ByteString.Char8 qualified as BS.Strict.Char8
import Data.Default
import Data.Foldable (asum)
import Data.Maybe (fromMaybe)
Expand Down Expand Up @@ -508,13 +507,8 @@ stayConnected connParams server connStateVar connOutOfScope =
clientConfig :: Address -> Scheme -> HTTP2.Client.ClientConfig
clientConfig addr = \case
Http ->
-- The spec mandates the use of UTF8
-- <https://www.rfc-editor.org/rfc/rfc3986#section-3.2.2>
-- but this is currently not what http2-tls does
-- <https://github.com/kazu-yamamoto/http2-tls/issues/7>
-- For consistency, we do the same as http2-tls here.
HTTP2.Client.defaultClientConfig {
HTTP2.Client.authority = BS.Strict.Char8.pack authority
HTTP2.Client.authority = authority
}
Https ->
HTTP2.TLS.Client.defaultClientConfig
Expand Down

0 comments on commit 7645559

Please sign in to comment.