Skip to content

Commit

Permalink
Merge pull request #2508 from murgatroid99/grpc-js_server_clear_deadl…
Browse files Browse the repository at this point in the history
…ine_cancel

grpc-js: Cancel deadline timer on server when call is cancelled
  • Loading branch information
murgatroid99 authored Jul 31, 2023
2 parents ff25a75 + 7c3a5fe commit b86615c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/grpc-js/src/server-call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ export class Http2ServerCallStream<
details: 'Cancelled by client',
metadata: null,
});
if (this.deadlineTimer) clearTimeout(this.deadlineTimer);
}
});

Expand Down

0 comments on commit b86615c

Please sign in to comment.