File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Sources/AsyncHTTPClient/ConnectionPool/HTTP2 Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ struct HTTP2PushNotSupportedError: Error {}
29
29
struct HTTP2ReceivedGoAwayBeforeSettingsError : Error { }
30
30
31
31
final class HTTP2Connection {
32
+ private static let defaultSettings = nioDefaultSettings + [ HTTP2Setting ( parameter: . enablePush, value: 0 ) ]
33
+
32
34
let channel : Channel
33
35
let multiplexer : HTTP2StreamMultiplexer
34
36
let logger : Logger
@@ -196,7 +198,7 @@ final class HTTP2Connection {
196
198
// can be scheduled on this connection.
197
199
let sync = self . channel. pipeline. syncOperations
198
200
199
- let http2Handler = NIOHTTP2Handler ( mode: . client, initialSettings: nioDefaultSettings )
201
+ let http2Handler = NIOHTTP2Handler ( mode: . client, initialSettings: Self . defaultSettings )
200
202
let idleHandler = HTTP2IdleHandler ( delegate: self , logger: self . logger, maximumConnectionUses: self . maximumConnectionUses)
201
203
202
204
try sync. addHandler ( http2Handler, position: . last)
You can’t perform that action at this time.
0 commit comments