Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: exit stream successfully after receiving N responses #410

Open
jtylka opened this issue Sep 7, 2023 · 0 comments
Open

Comments

@jtylka
Copy link

jtylka commented Sep 7, 2023

hi, I'm trying to use gRPCurl in some automated API test suite, and I'm not sure what the best way to test response-streaming RPC methods. I would like to call the method, make sure the stream starts, and then gracefully cancel the stream with a success code (assuming everything actually works until that point).

so far, what I've found is the flag -max-time, which limits how long gRPCurl is subscribed to the stream, but then it closes with an ERROR:

  Code: DeadlineExceeded
  Message: Deadline Exceeded

would it be possible to add an option like -max-response N, which only applies to response-streaming RPCs, and then cancels the stream gracefully once the desired number of responses has been received by gRPCurl?

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant