Skip to content

[grpc-js] cancelled method does not cancel the stream #1523

@mad-it

Description

@mad-it

Problem description

grpc-js client does not emit cancelled event properly when cancel() method is invoked on ClientReadableStream streams.

When cancelled is invoked by the grpc-js client, an error is thrown, but the stream is not actually cancelled. This results in the server not being able to shut down because of an open stream.

Reproduction steps

Reproduction https://github.com/mad-it/grpc-js-bug

Environment

  • OS name, version and architecture: Ubuntu 18.04
  • Node version: 12.x
  • Package name and version : "@grpc/grpc-js@1.1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions