File tree 5 files changed +22
-27
lines changed
5 files changed +22
-27
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,12 @@ jobs:
228
228
echo "package trailers-only-tutorial" >> cabal.project
229
229
echo " ghc-options: -Werror=missing-methods" >> cabal.project
230
230
cat >> cabal.project <<EOF
231
+ source-repository-package
232
+ type: git
233
+ location: https://github.com/kazu-yamamoto/wai.git
234
+ tag: 721782ad6e60f3ae4ff609b33c90e56921a4bddb
235
+ subdir: time-manager
236
+
231
237
source-repository-package
232
238
type: git
233
239
location: https://github.com/google/proto-lens
Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ package grapesy
18
18
benchmarks : True
19
19
flags : +build-demo +build-stress-test
20
20
21
+ source-repository-package
22
+ type : git
23
+ location : https://github.com/kazu-yamamoto/wai.git
24
+ tag : 721782ad6e60f3ae4ff609b33c90e56921a4bddb
25
+ subdir : time-manager
26
+
21
27
-- proto-lens support for ghc 9.10
22
28
-- https://github.com/google/proto-lens/pull/494
23
29
source-repository-package
Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ package conduit-tutorial
41
41
package trailers-only-tutorial
42
42
ghc-options: -Werror
43
43
44
+ source-repository-package
45
+ type: git
46
+ location: https://github.com/kazu-yamamoto/wai.git
47
+ tag: 721782ad6e60f3ae4ff609b33c90e56921a4bddb
48
+ subdir: time-manager
49
+
44
50
-- proto-lens support for ghc 9.10
45
51
-- https://github.com/google/proto-lens/pull/494
46
52
source-repository-package
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE CPP #-}
2
-
3
1
-- | Public 'Compression' API
4
2
--
5
3
-- Intended for qualified import.
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE CPP #-}
2
-
3
- #include "MachDeps.h"
4
-
5
1
module Network.GRPC.Util.HTTP2 (
6
2
-- * General auxiliary
7
3
fromHeaderTable
@@ -219,26 +215,9 @@ mkTlsSettings http2Settings keyLogger =
219
215
withTimeManager :: (Time. Manager -> IO a ) -> IO a
220
216
withTimeManager = TimeManager. withManager (disableTimeout * 1_000_000 )
221
217
222
- -- | Work around the fact that we cannot disable timeouts in http2/http2-tls
218
+ -- | Disable timeouts in http2/http2-tls
223
219
--
224
- -- TODO: <https://github.com/well-typed/grapesy/issues/123>
225
- -- We need a proper solution for this .
220
+ -- A value of 0 (or lower) disables timeouts altogether as of
221
+ -- <https://github.com/yesodweb/wai/pull/1017> .
226
222
disableTimeout :: Int
227
- disableTimeout =
228
- #if (WORD_SIZE_IN_BITS == 64)
229
- -- Set a really high timeout to effectively disable timeouts (100 years)
230
- --
231
- -- NOTE: We cannot use 'maxBound' here, because this value is multiplied
232
- -- by @1_000_000@ in 'Network.Run.TCP.Timeout.runTCPServerWithSocket'
233
- -- (in @network-run@).
234
- 100 * 365 * 24 * 60 * 60
235
- #else
236
- #warning "Timeout for RPC messages is set to 30 minutes on 32-bit systems."
237
- #warning "See https://github.com/kazu-yamamoto/http2/issues/112"
238
- -- Unfortunately, the same trick does not work on 32-bit systems, where we
239
- -- simply don't have enough range. The maximum timeout we can support here
240
- -- is roughly 35 mins. We set it to 30 minutes exactly, to at least provide
241
- -- a clue if the timeout does hit (1_800_000_000 < 2_147_483_647).
242
- 30 * 60
243
- #endif
244
-
223
+ disableTimeout = 0
You can’t perform that action at this time.
0 commit comments