mirror of https://github.com/grpc/grpc-node.git
Merge pull request #1780 from murgatroid99/grpc-js_econnreset_error_parsing
grpc-js: Look for ECONNRESET errors by checking the error code
This commit is contained in:
commit
126961a7da
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@grpc/grpc-js",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"description": "gRPC Library for Node - pure JS implementation",
|
||||
"homepage": "https://grpc.io/",
|
||||
"repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",
|
||||
|
|
|
@ -589,7 +589,7 @@ export class Http2CallStream implements Call {
|
|||
* "Internal server error" message. */
|
||||
details = `Received RST_STREAM with code ${stream.rstCode} (Internal server error)`;
|
||||
} else {
|
||||
if (this.internalError.errno === os.constants.errno.ECONNRESET) {
|
||||
if (this.internalError.code === 'ECONNRESET') {
|
||||
code = Status.UNAVAILABLE;
|
||||
details = this.internalError.message;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue