Skip to content

Commit

Permalink
Merge pull request #2335 from murgatroid99/grpc-js_clear_deadline
Browse files Browse the repository at this point in the history
grpc-js: Clear deadline timer when call ends
  • Loading branch information
murgatroid99 committed Jan 23, 2023
2 parents 3fe2185 + ba405cf commit 0081d24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grpc-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@grpc/grpc-js",
"version": "1.8.4",
"version": "1.8.5",
"description": "gRPC Library for Node - pure JS implementation",
"homepage": "https://grpc.io/",
"repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",
Expand Down
1 change: 1 addition & 0 deletions packages/grpc-js/src/resolving-call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export class ResolvingCall implements Call {
if (!this.filterStack) {
this.filterStack = this.filterStackFactory.createFilter();
}
clearTimeout(this.deadlineTimer);
const filteredStatus = this.filterStack.receiveTrailers(status);
this.trace('ended with status: code=' + filteredStatus.code + ' details="' + filteredStatus.details + '"');
this.statusWatchers.forEach(watcher => watcher(filteredStatus));
Expand Down

0 comments on commit 0081d24

Please sign in to comment.