Skip to content

Commit c237d19

Browse files
committed
Enable HTTP/2 for mesh.request() connections
1 parent 812f7ba commit c237d19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

agent/apps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export default function (rootDir, mountName, epInfo, meshEnv) {
230230
$target = ep
231231
return req
232232
})
233-
.muxHTTP(() => $target).to($=>$
233+
.muxHTTP(() => $target, { version: 2 }).to($=>$
234234
.pipe(() => connect($target, { dedicated: true }))
235235
)
236236
.replaceMessage(res => {

agent/mesh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ export default function (rootDir, listen, config, onConfigUpdate) {
847847
ping: () => new Timeout(10).wait().then(new Data),
848848
}).to($=>$
849849
.connectTLS(tlsOptions).to($=>$
850-
// .insert(() => checkTimeout()) // TODO: Enable session timeout
850+
.insert(() => checkTimeout())
851851
.connect(() => $selectedHub, connectOptions)
852852
)
853853
)

0 commit comments

Comments
 (0)