Skip to content

Commit

Permalink
refresh session when destroyed (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauna-chase authored Jul 17, 2023
1 parent 0d39ae6 commit 06a165b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http-client/node-http2-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class NodeHTTP2Client implements HTTPClient {

#connect() {
// create the session if it does not exist or is closed
if (!this.#session || this.#session.closed) {
if (!this.#session || this.#session.closed || this.#session.destroyed) {
const new_session: ClientHttp2Session = http2
.connect(this.#url, {
peerMaxConcurrentStreams: this.#http2_max_streams,
Expand Down

0 comments on commit 06a165b

Please sign in to comment.