Skip to content

Commit 0081d24

Browse files
authored
Merge pull request #2335 from murgatroid99/grpc-js_clear_deadline
grpc-js: Clear deadline timer when call ends
2 parents 3fe2185 + ba405cf commit 0081d24

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/grpc-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@grpc/grpc-js",
3-
"version": "1.8.4",
3+
"version": "1.8.5",
44
"description": "gRPC Library for Node - pure JS implementation",
55
"homepage": "https://grpc.io/",
66
"repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",

packages/grpc-js/src/resolving-call.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export class ResolvingCall implements Call {
103103
if (!this.filterStack) {
104104
this.filterStack = this.filterStackFactory.createFilter();
105105
}
106+
clearTimeout(this.deadlineTimer);
106107
const filteredStatus = this.filterStack.receiveTrailers(status);
107108
this.trace('ended with status: code=' + filteredStatus.code + ' details="' + filteredStatus.details + '"');
108109
this.statusWatchers.forEach(watcher => watcher(filteredStatus));

0 commit comments

Comments
 (0)